ci: fix badge push — use GITHUB_TOKEN for write access

This commit is contained in:
you
2026-03-24 02:43:15 +00:00
parent 9008b99bdf
commit c95045b07c

View File

@@ -55,8 +55,10 @@ jobs:
run: |
git config user.name "github-actions"
git config user.email "actions@github.com"
git remote set-url origin https://x-access-token:${{ github.token }}@github.com/${{ github.repository }}.git
git add .badges/ -f
git diff --cached --quiet || (git commit -m "ci: update test badges [skip ci]" && git push)
git diff --cached --quiet || (git commit -m "ci: update test badges [skip ci]" && git push)
deploy:
needs: test