1 # This workflow will run clang-format and comment on the PR.
2 # Because of security reasons, it is crucial that this workflow
3 # executes no shell script nor runs make.
4 # Read this before editing: https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
16 name: clang-format check
19 - uses: actions/checkout@v3
21 ref: ${{ github.event.pull_request.head.sha }}
23 - name: Run clang-format style check
24 uses: jidicula/clang-format-action@f62da5e3d3a2d88ff364771d9d938773a618ab5e
26 continue-on-error: true
28 clang-format-version: '17'
29 exclude-regex: 'incbin'
32 if: steps.clang-format.outcome == 'failure'
33 uses: thollander/actions-comment-pull-request@1d3973dc4b8e1399c0620d3f2b1aa5e795465308
36 clang-format 17 needs to be run on this PR.
37 If you do not have clang-format installed, the maintainer will run it when merging.
38 For the exact version please see https://packages.ubuntu.com/mantic/clang-format-17.
40 _(execution **${{ github.run_id }}** / attempt **${{ github.run_attempt }}**)_
41 comment_tag: execution
44 if: steps.clang-format.outcome != 'failure'
45 uses: thollander/actions-comment-pull-request@1d3973dc4b8e1399c0620d3f2b1aa5e795465308
48 _(execution **${{ github.run_id }}** / attempt **${{ github.run_attempt }}**)_
49 create_if_not_exists: false
50 comment_tag: execution