File tree Expand file tree Collapse file tree 3 files changed +17
-11
lines changed Expand file tree Collapse file tree 3 files changed +17
-11
lines changed Original file line number Diff line number Diff line change 55 paths :
66 - ' docker/**'
77 - ' .github/workflows/docker.yml'
8- workflow_run :
9- workflows : ["PR Compliance"]
10- types : [completed]
8+ pull_request :
9+ paths :
10+ - ' docker/**'
11+ - ' .github/workflows/docker.yml'
1112 workflow_dispatch :
1213
1314permissions :
1819 build-and-push :
1920 name : Build & Push Docker Image
2021 runs-on : ubuntu-latest
21- if : >-
22- ${{ github.repository == 'learning-process/parallel_programming_course' &&
23- (github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success') }}
22+ if : github.repository == 'learning-process/parallel_programming_course'
2423
2524 steps :
2625 - name : Check out code
Original file line number Diff line number Diff line change 11name : Pre-commit checks
22
33on :
4+ push :
5+ pull_request :
46 workflow_call :
57
68jobs :
Original file line number Diff line number Diff line change 11name : Static analysis
22
33on :
4- workflow_run :
5- workflows : ["PR Compliance"]
6- types : [completed]
4+ pull_request :
5+ paths :
6+ - ' **/*.cpp'
7+ - ' **/*.hpp'
8+ - ' **/*.c'
9+ - ' **/*.h'
10+ - ' **/CMakeLists.txt'
11+ - ' **/*.cmake'
12+ - ' **/.clang-tidy'
13+ - ' .github/workflows/static-analysis-pr.yml'
714
815concurrency :
916 group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
@@ -14,7 +21,6 @@ concurrency:
1421
1522jobs :
1623 clang-tidy :
17- if : ${{ github.event.workflow_run.conclusion == 'success' }}
1824 runs-on : ubuntu-24.04
1925 container :
2026 image : ghcr.io/learning-process/ppc-ubuntu:1.1
@@ -111,7 +117,6 @@ jobs:
111117 echo "clang-tidy run has failed. See previous 'Run clang-tidy' stage logs"
112118 exit 1
113119 nolint-check :
114- if : ${{ github.event.workflow_run.conclusion == 'success' }}
115120 runs-on : ubuntu-24.04
116121 steps :
117122 - uses : actions/checkout@v5
You can’t perform that action at this time.
0 commit comments