Skip to content

Commit 29f3e0b

Browse files
authored
clang-tidy.yml: make it possible to manually trigger the Clang Static Analyzer run (#7414)
1 parent a55b557 commit 29f3e0b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/clang-tidy.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ on:
1313
pull_request:
1414
schedule:
1515
- cron: '0 0 * * 0'
16+
workflow_dispatch:
1617

1718
permissions:
1819
contents: read
@@ -75,11 +76,11 @@ jobs:
7576
make -C cmake.output/test cmake_pch.hxx.pch
7677
7778
- name: Clang-Tidy
78-
if: github.event.schedule == ''
79+
if: ${{ github.event.schedule == '' && github.event_name != 'workflow_dispatch' }}
7980
run: |
8081
cmake --build cmake.output --target run-clang-tidy 2> /dev/null
8182
8283
- name: Clang Static Analyzer
83-
if: github.event.schedule != ''
84+
if: ${{ github.event.schedule != '' || github.event_name == 'workflow_dispatch' }}
8485
run: |
8586
cmake --build cmake.output --target run-clang-tidy-csa 2> /dev/null

0 commit comments

Comments
 (0)