Skip to content

Commit ab6f7b2

Browse files
committed
Add secret with rights for github action bot
1 parent 5f6a587 commit ab6f7b2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/update.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,11 @@ jobs:
3030
mv index.xml docs/index.xml
3131
3232
- name: Commit RSS update
33+
env:
34+
GH_PAT: ${{ secrets.GH_PAT }}
3335
run: |
3436
git config user.name "github-actions"
3537
git config user.email "github-actions@github.com"
3638
git add docs/index.xml
3739
git diff --cached --quiet || git commit -m "Update RSS feed"
38-
git push
40+
git push https://x-access-token:${GH_PAT}@github.com/${{ github.repository }}.git HEAD:master

0 commit comments

Comments
 (0)