@@ -38,12 +38,11 @@ jobs:
3838 # Reply start message when triggered by comment
3939 - name : Reply start message
4040 if : github.event_name == 'issue_comment'
41- uses : peter-evans/create-or-update-comment@v4
41+ uses : peter-evans/create-or-update-comment@v5
4242 with :
4343 token : ${{ secrets.AX_BOT_TOKEN || github.token }}
44- issue-number : ${{ github.event.issue.number }}
45- body : |
46- 👋 @${{ github.event.comment.user.login }} Command **/clang-format** received. Running code formatting, please wait...
44+ comment-id : ${{ github.event.comment.id }}
45+ reactions : eyes
4746
4847 # Get PR info when triggered by a comment
4948 - name : Get PR info (for comment trigger)
9594 Write-Host "head_repo=$head_repo, head_ref=$head_ref, lint_mode=$lint_mode"
9695
9796 # Checkout correct branch
98- - uses : actions/checkout@v5
97+ - uses : actions/checkout@v6
9998 with :
10099 repository : ${{ steps.pp.outputs.head_repo }}
101100 ref : ${{ steps.pp.outputs.head_ref }}
@@ -140,7 +139,7 @@ jobs:
140139 - name : Create pull request
141140 if : ${{ steps.pp.outputs.lint_mode == 'create_pr' }}
142141 id : cpr
143- uses : peter-evans/create-pull-request@v7
142+ uses : peter-evans/create-pull-request@v8
144143 with :
145144 token : ${{ secrets.AX_BOT_TOKEN || github.token }}
146145 push-to-fork : axmol-bot/axmol
@@ -171,7 +170,7 @@ jobs:
171170 # auto_commit mode (including comment trigger)
172171 - name : Commit clang-format changes to PR source branch
173172 if : ${{ steps.pp.outputs.lint_mode == 'auto_commit' }}
174- uses : EndBug/add-and-commit@v9
173+ uses : EndBug/add-and-commit@v10
175174 with :
176175 author_name : axmol-bot
177176 author_email : 116471739+axmol-bot@users.noreply.github.com
@@ -182,21 +181,10 @@ jobs:
182181 env :
183182 GITHUB_TOKEN : ${{ secrets.AX_BOT_TOKEN || github.token }}
184183
185- # Reply finish message after auto_commit success
186- - name : Reply finish message
187- if : ${{ success() && steps.pp.outputs.lint_mode == 'auto_commit' && github.event_name == 'issue_comment' }}
188- uses : peter-evans/create-or-update-comment@v4
189- with :
190- token : ${{ secrets.AX_BOT_TOKEN || github.token }}
191- issue-number : ${{ github.event.issue.number }}
192- body : |
193- ✅ Formatting completed and changes have been committed to the PR branch: `${{ steps.pp.outputs.head_ref }}`.
194- @${{ github.event.comment.user.login }} please refresh to see the latest code.
195-
196184 # Reply failure message if job fails
197185 - name : Reply failure message
198186 if : ${{ failure() && github.event_name == 'issue_comment' }}
199- uses : peter-evans/create-or-update-comment@v4
187+ uses : peter-evans/create-or-update-comment@v5
200188 with :
201189 token : ${{ secrets.AX_BOT_TOKEN || github.token }}
202190 issue-number : ${{ github.event.issue.number }}
0 commit comments