Fix access token expired

This commit is contained in:
Hellojack 2022-10-24 16:09:08 +08:00 committed by GitHub
parent 50c4bf766c
commit 9b8a098c22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -24,10 +24,10 @@ jobs:
id: build
env:
GOPRIVATE: github.com/sagernet
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NO_SKIP: true
run: |
git config --global url."https://${{ secrets.ACCESS_TOKEN }}@github.com".insteadOf "https://github.com"
git config --global url."https://${{ secrets.GITHUB_TOKEN }}@github.com".insteadOf "https://github.com"
go run -v .
- name: Upload artifacts
uses: actions/upload-artifact@v2

View File

@ -24,9 +24,9 @@ jobs:
id: build
env:
GOPRIVATE: github.com/sagernet
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global url."https://${{ secrets.ACCESS_TOKEN }}@github.com".insteadOf "https://github.com"
git config --global url."https://${{ secrets.GITHUB_TOKEN }}@github.com".insteadOf "https://github.com"
go run -v .
- name: Generate sha256 hash
if: steps.build.outputs.skip != 'true'