From 3b2b2de094e9a7d1267d060e6eaeab5fa1040706 Mon Sep 17 00:00:00 2001 From: firewave Date: Fri, 28 Mar 2025 15:30:14 +0100 Subject: [PATCH] clang-tidy.yml: make it possible to manually trigger the Clang Static Analyzer run --- .github/workflows/clang-tidy.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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