style: clang-tidy auto fixes (#1740) #290
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Restart clang-tidy workflow | |
on: | |
push: | |
branches: [develop] | |
workflow_dispatch: | |
jobs: | |
restart_clang_tidy: | |
runs-on: ubuntu-20.04 | |
permissions: | |
actions: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Check last commit matches clang-tidy auto fixes | |
id: check | |
shell: bash | |
run: | | |
passed=$(if [[ $(git log -1 --pretty=format:%s | grep 'style: clang-tidy auto fixes') ]]; then echo 'true' ; else echo 'false' ; fi) | |
echo "passed=$passed" >> $GITHUB_OUTPUT | |
- name: Run clang-tidy workflow | |
if: ${{ contains(steps.check.outputs.passed, 'true') }} | |
shell: bash | |
env: | |
GH_TOKEN: ${{ github.token }} | |
GH_REPO: ${{ github.repository }} | |
run: gh workflow run clang-tidy.yml |