Skip to content

Commit a0a222c

Browse files
committed
wip
1 parent 1edd79c commit a0a222c

File tree

1 file changed

+14
-42
lines changed

1 file changed

+14
-42
lines changed

.github/workflows/pr-verify.yml

Lines changed: 14 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,6 @@ permissions:
88

99
jobs:
1010

11-
cancel-if-needed:
12-
needs: [formatting, compile, build]
13-
if: contains(needs.*.result, 'failure')
14-
runs-on: ubuntu-latest
15-
permissions: { actions: write }
16-
steps:
17-
- uses: andymckay/cancel-action@0.4
18-
1911
formatting:
2012
runs-on: ubuntu-latest
2113
steps:
@@ -33,13 +25,9 @@ jobs:
3325
${{ runner.os }}-jdk${{ matrix.jdk }}-maven-
3426
- name: Check formatting
3527
run: mvn -B formatter:validate impsort:check xml-format:xml-check
36-
- name: Cancel workflow on failure
37-
uses: vishnudxb/cancel-workflow@v1.2
38-
if: failure()
39-
with:
40-
repo: eclipse/rdf4j
41-
workflow_id: ${{ github.run_id }}
42-
access_token: ${{ github.token }}
28+
- name: Abort all other jobs
29+
if: failure() # ← fires only when the job is red
30+
uses: andymckay/cancel-action@0.4
4331

4432
compile:
4533
runs-on: ubuntu-latest
@@ -58,13 +46,9 @@ jobs:
5846
${{ runner.os }}-jdk${{ matrix.jdk }}-maven-
5947
- name: Compile (mvn clean install)
6048
run: mvn -B clean install -DskipTests
61-
- name: Cancel workflow on failure
49+
- name: Abort all other jobs
50+
if: failure() # ← fires only when the job is red
6251
uses: andymckay/cancel-action@0.4
63-
if: failure()
64-
with:
65-
repo: eclipse/rdf4j
66-
workflow_id: ${{ github.run_id }}
67-
access_token: ${{ github.token }}
6852

6953
build:
7054
runs-on: ubuntu-latest
@@ -96,13 +80,9 @@ jobs:
9680
uses: scacap/action-surefire-report@v1.9.0
9781
with:
9882
check_name: Test report - build - ${{ matrix.jdk }}
99-
- name: Cancel workflow on failure
100-
uses: vishnudxb/cancel-workflow@v1.2
101-
if: failure()
102-
with:
103-
repo: eclipse/rdf4j
104-
workflow_id: ${{ github.run_id }}
105-
access_token: ${{ github.token }}
83+
- name: Abort all other jobs
84+
if: failure() # ← fires only when the job is red
85+
uses: andymckay/cancel-action@0.4
10686

10787
integration-tests:
10888
runs-on: ubuntu-latest
@@ -177,13 +157,9 @@ jobs:
177157
run: mvn clean && mvn -B -U -T 2C install -Pquick
178158
- name: Package assembly
179159
run: mvn package -Passembly -DskipTests
180-
- name: Cancel workflow on failure
181-
uses: vishnudxb/cancel-workflow@v1.2
182-
if: failure()
183-
with:
184-
repo: eclipse/rdf4j
185-
workflow_id: ${{ github.run_id }}
186-
access_token: ${{ github.token }}
160+
- name: Abort all other jobs
161+
if: failure() # ← fires only when the job is red
162+
uses: andymckay/cancel-action@0.4
187163

188164
e2e:
189165
runs-on: ubuntu-latest
@@ -216,10 +192,6 @@ jobs:
216192
- uses: actions/checkout@v2
217193
- name: check copyright header present
218194
run: scripts/checkCopyrightPresent.sh
219-
- name: Cancel workflow on failure
220-
uses: vishnudxb/cancel-workflow@v1.2
221-
if: failure()
222-
with:
223-
repo: eclipse/rdf4j
224-
workflow_id: ${{ github.run_id }}
225-
access_token: ${{ github.token }}
195+
- name: Abort all other jobs
196+
if: failure() # ← fires only when the job is red
197+
uses: andymckay/cancel-action@0.4

0 commit comments

Comments
 (0)