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:
Saumya Jain 2024-04-10 14:01:17 +02:00
parent bb94ce9e75
commit d52cd78852

View File

@ -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