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