最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

github - Context access might be invalid: cache_id - Stack Overflow

programmeradmin4浏览0评论

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'

发布评论

评论列表(0)

  1. 暂无评论