File tree Expand file tree Collapse file tree 1 file changed +7
-12
lines changed
Expand file tree Collapse file tree 1 file changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -11,26 +11,21 @@ permissions:
1111 pull-requests : write
1212
1313concurrency :
14- group : ${{ github.workflow }}-${{ github.event.workflow_run.pull_requests[0] .number }}
14+ group : ${{ github.workflow }}-${{ github.event.pull_request .number }}
1515 cancel-in-progress : true
1616
1717jobs :
18- post-comments :
19- # Only run if the triggering workflow was from a pull request
20- if : github.event.workflow_run.event == 'pull_request'
18+ build :
2119 runs-on : ubuntu-latest
22-
20+
2321 steps :
2422 - name : Post review comments
2523 id : post-review
2624 uses :
ZedThree/clang-tidy-review/[email protected] 2725 with :
2826 max_comments : 10
29-
30- # Fail if there are any clang-tidy warnings
31- - name : Check for issues
32- if : steps.post-review.outputs.total_comments > 0
33- run : |
34- echo "::error::Found ${{ steps.post-review.outputs.total_comments }} clang-tidy issues"
35- exit 1
27+
28+ # If there are any comments, fail the check
29+ - if : steps.post-review.outputs.total_comments > 0
30+ run : exit 1
3631
You can’t perform that action at this time.
0 commit comments