Skip to content

Commit 4e30867

Browse files
committed
build(workflows): revert docker.yml, pre-commit.yml, static-analysis-pr.yml to upstream/master
1 parent 4135b47 commit 4e30867

File tree

3 files changed

+17
-11
lines changed

3 files changed

+17
-11
lines changed

.github/workflows/docker.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ on:
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

1314
permissions:
@@ -18,9 +19,7 @@ jobs:
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

.github/workflows/pre-commit.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Pre-commit checks
22

33
on:
4+
push:
5+
pull_request:
46
workflow_call:
57

68
jobs:

.github/workflows/static-analysis-pr.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
name: Static analysis
22

33
on:
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

815
concurrency:
916
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
@@ -14,7 +21,6 @@ concurrency:
1421
1522
jobs:
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

0 commit comments

Comments
 (0)