admin管理员组文章数量:1221457
I'm trying to push my repo from local in Visual Studio Code to GitHub with an MKDOCS and getting an error in the Ci.yml file when trying git init in the terminal. With an error context access might be invalid:cache-id [Ln 24, col32]
Not at all sure what is causing it, or why I'm getting this error.
It would be good if I could fix it or know a different way around to publish an MKDOCs-Material theme on local to Github
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github
- uses: actions/setup-python@v5
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- run: pip install mkdocs-material
- run: mkdocs gh-deploy --force
I have tried to remake directorys and add code again with no luck.
It also not allow me to push to the new repo I made:
error: failed to push some refs to '.git'
本文标签: githubContext access might be invalid cacheidStack Overflow
版权声明:本文标题:github - Context access might be invalid: cache_id - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1739318412a2157916.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论