We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 174de83 commit d3d5761Copy full SHA for d3d5761
.github/workflows/update-links.yml
@@ -28,13 +28,12 @@ jobs:
28
- name: Generate links and update README
29
run: node scripts/update_links.js
30
31
- - name: Commit changes
+ - name: Commit and push changes
32
run: |
33
- git config user.name "${GITHUB_ACTOR}"
34
- git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
+ git config user.name "github-actions[bot]"
+ git config user.email "github-actions[bot]@users.noreply.github.com"
35
git add README.md
36
git diff-index --quiet HEAD || git commit -m "chore: auto update share links"
37
- # 使用 token 进行推送
38
- git push "https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${{ github.repository }}.git" HEAD:main
+ git push
39
env:
40
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
0 commit comments