mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-06-04 11:14:21 +08:00
Update GitHub workflow to use create-or-update-comment action
In this update, the GitHub workflow now uses the 'create-or-update-comment' action instead of the 'find-comment' action for PR comments. Additionally, a step has been added to get the PR number. This change is expected to facilitate more efficient PR commenting and handling. CURa-10903
This commit is contained in:
parent
bb94ce9e75
commit
d52cd78852
11
.github/workflows/printer-linter-pr-post.yml
vendored
11
.github/workflows/printer-linter-pr-post.yml
vendored
@ -72,12 +72,15 @@ jobs:
|
||||
mkdir printer-linter-result
|
||||
unzip printer-linter-result.zip -d printer-linter-result
|
||||
|
||||
- name: Get PR Number
|
||||
id: get-pr-number
|
||||
uses: mgaitan/gha-get-pr-number
|
||||
|
||||
- name: Run PR Comments
|
||||
uses: peter-evans/find-comment@v3
|
||||
uses: peter-evans/create-or-update-comment@v4
|
||||
with:
|
||||
issue-number: ${{ github.event.pull_request.number }}
|
||||
comment-author: 'github-actions[bot]'
|
||||
body-path: printer-linter-result/comment.md
|
||||
issue-number: ${{ steps.get-pr-number.outputs.number }}
|
||||
body-path: 'printer-linter-result/comment.md'
|
||||
|
||||
- name: Run clang-tidy-pr-comments action
|
||||
uses: platisd/clang-tidy-pr-comments@bc0bb7da034a8317d54e7fe1e819159002f4cc40
|
||||
|
Loading…
x
Reference in New Issue
Block a user