Skip to content

Commit 684480e

Browse files
committed
Fix auth for pushing
1 parent 959aa22 commit 684480e

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

.github/workflows/publish.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,11 @@ jobs:
1414
publish:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v3
18-
- name: Setup git repo
19-
env:
20-
GH_USERNAME: ${{ vars.GH_USER_NAME }}
21-
GH_API_TOKEN: ${{ secrets.GH_API_TOKEN }}
17+
- uses: actions/checkout@v6
18+
token: ${{ secrets.GH_API_TOKEN }}
2219
run: |
2320
git config user.name $GITHUB_ACTOR
24-
git config user.email gh-actions-${GITHUB_ACTOR}@github.com
25-
git remote add gh-origin https://${GH_USERNAME}:${GH_API_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
21+
git config user.email gh-actions-${GITHUB_ACTOR}@github.com
2622
- name: Set up Python
2723
uses: actions/setup-python@v4
2824
with:

0 commit comments

Comments
 (0)