Skip to content

Commit d3d5761

Browse files
authored
Update update-links.yml
1 parent 174de83 commit d3d5761

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/update-links.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,12 @@ jobs:
2828
- name: Generate links and update README
2929
run: node scripts/update_links.js
3030

31-
- name: Commit changes
31+
- name: Commit and push changes
3232
run: |
33-
git config user.name "${GITHUB_ACTOR}"
34-
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
33+
git config user.name "github-actions[bot]"
34+
git config user.email "github-actions[bot]@users.noreply.github.com"
3535
git add README.md
3636
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
37+
git push
3938
env:
4039
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)