Skip to content

Commit

Permalink
Rerun clang tidy on fix merge (#1124)
Browse files Browse the repository at this point in the history
  • Loading branch information
godexsoft authored Jan 16, 2024
1 parent 1fa0900 commit 12bbed1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/clang-tidy_on_fix_merged.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Get commit name
id: commit_name
- name: Check last commit matches clang-tidy auto fixes
id: check
shell: bash
run: |
commit=$(git log -1 --pretty=format:%s | grep '\[CI\] clang-tidy auto fixes')
echo "commit=$commit" >> $GITHUB_OUTPUT
passed=$(if [[ $(git log -1 --pretty=format:%s | grep '\[CI\] clang-tidy auto fixes') ]]; then echo 'true' ; else echo 'false' ; fi)
echo "passed=$passed" >> $GITHUB_OUTPUT
- name: Run clang-tidy workflow
if: ${{ steps.commit_name.outputs.commit != '' }}
if: ${{ contains(steps.check.outputs.passed, 'true') }}
shell: bash
env:
GH_TOKEN: ${{ github.token }}
Expand Down

0 comments on commit 12bbed1

Please sign in to comment.