@@ -21,11 +21,12 @@ jobs:
21
21
# this is important so git log can pick up on
22
22
# the whole history to generate the list of AUTHORS
23
23
fetch-depth : " 0"
24
+ token : ${{ secrets.SVC_DEVTOOLSBOT_TOKEN }}
24
25
25
26
- name : Set up Git
26
27
run : |
27
- git config --local user.email "41898282+github-actions[bot] @users.noreply.github.com"
28
- git config --local user.name "github-actions[bot] "
28
+ git config --local user.email "devtoolsbot @users.noreply.github.com"
29
+ git config --local user.name "devtoolsbot "
29
30
30
31
- uses : actions/setup-node@v4
31
32
with :
44
45
- name : Update THIRD_PARTY_NOTICES.md
45
46
run : |
46
47
npm run update-third-party-notices
47
- git commit --no-allow-empty -m "chore: update THIRD_PARTY_NOTICES" THIRD_PARTY_NOTICES .md || true
48
+ git add THIRD_PARTY_NOTICES.md
48
49
49
50
- name : Update AUTHORS
50
51
run : |
73
74
npm run update-cli-usage-text packages/*/*.md *.md
74
75
git add packages/*/*.md *.md
75
76
76
- - name : Create pull request
77
- id : cpr
78
- uses : peter-evans/create-pull-request@v6
79
- with :
80
- commit-message : Update auto-generated files
81
- branch : ci/cron-tasks-update-files
82
- title : " chore: update auto-generated files"
83
- body : |
84
- - Update auto-generated files
85
-
86
- - name : Merge PR
87
- env :
88
- PULL_REQUEST_NUMBER : ${{steps.cpr.outputs.pull-request-number}}
89
- # NOTE: we don't use a PAT so to not trigger further automation
90
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
77
+ - name : Commit and push
91
78
run : |
92
- gh pr merge $PULL_REQUEST_NUMBER --squash --delete-branch
79
+ git commit --no-allow-empty -m "chore: update auto-generated files" || true
80
+ git push
0 commit comments