From 12bbed194c51f8a188cb616b772e9a8446fd7346 Mon Sep 17 00:00:00 2001 From: Alex Kremer Date: Tue, 16 Jan 2024 18:14:09 +0000 Subject: [PATCH] Rerun clang tidy on fix merge (#1124) --- .github/workflows/clang-tidy_on_fix_merged.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/clang-tidy_on_fix_merged.yml b/.github/workflows/clang-tidy_on_fix_merged.yml index de584eda2..c90fbb338 100644 --- a/.github/workflows/clang-tidy_on_fix_merged.yml +++ b/.github/workflows/clang-tidy_on_fix_merged.yml @@ -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 }}