diff --git a/.github/workflows/clang-tidy.yml b/.github/workflows/clang-tidy.yml index 02f00b5c204..16429dc1355 100644 --- a/.github/workflows/clang-tidy.yml +++ b/.github/workflows/clang-tidy.yml @@ -13,6 +13,7 @@ on: pull_request: schedule: - cron: '0 0 * * 0' + workflow_dispatch: permissions: contents: read @@ -75,11 +76,11 @@ jobs: make -C cmake.output/test cmake_pch.hxx.pch - name: Clang-Tidy - if: github.event.schedule == '' + if: ${{ github.event.schedule == '' && github.event_name != 'workflow_dispatch' }} run: | cmake --build cmake.output --target run-clang-tidy 2> /dev/null - name: Clang Static Analyzer - if: github.event.schedule != '' + if: ${{ github.event.schedule != '' || github.event_name == 'workflow_dispatch' }} run: | cmake --build cmake.output --target run-clang-tidy-csa 2> /dev/null