Skip to content

Commit ecec002

Browse files
committed
wip
1 parent a0a222c commit ecec002

File tree

1 file changed

+30
-10
lines changed

1 file changed

+30
-10
lines changed

.github/workflows/pr-verify.yml

Lines changed: 30 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,13 @@ jobs:
2525
${{ runner.os }}-jdk${{ matrix.jdk }}-maven-
2626
- name: Check formatting
2727
run: mvn -B formatter:validate impsort:check xml-format:xml-check
28-
- name: Abort all other jobs
28+
- name: Abort all jobs
2929
if: failure() # ← fires only when the job is red
30-
uses: andymckay/cancel-action@0.4
30+
uses: potiuk/cancel-workflow-runs@master
31+
with:
32+
cancelMode: self
33+
notifyPRCancel: true
34+
token: ${{ secrets.GITHUB_TOKEN }}
3135

3236
compile:
3337
runs-on: ubuntu-latest
@@ -46,9 +50,13 @@ jobs:
4650
${{ runner.os }}-jdk${{ matrix.jdk }}-maven-
4751
- name: Compile (mvn clean install)
4852
run: mvn -B clean install -DskipTests
49-
- name: Abort all other jobs
53+
- name: Abort all jobs
5054
if: failure() # ← fires only when the job is red
51-
uses: andymckay/cancel-action@0.4
55+
uses: potiuk/cancel-workflow-runs@master
56+
with:
57+
cancelMode: self
58+
notifyPRCancel: true
59+
token: ${{ secrets.GITHUB_TOKEN }}
5260

5361
build:
5462
runs-on: ubuntu-latest
@@ -80,9 +88,13 @@ jobs:
8088
uses: scacap/action-surefire-report@v1.9.0
8189
with:
8290
check_name: Test report - build - ${{ matrix.jdk }}
83-
- name: Abort all other jobs
91+
- name: Abort all jobs
8492
if: failure() # ← fires only when the job is red
85-
uses: andymckay/cancel-action@0.4
93+
uses: potiuk/cancel-workflow-runs@master
94+
with:
95+
cancelMode: self
96+
notifyPRCancel: true
97+
token: ${{ secrets.GITHUB_TOKEN }}
8698

8799
integration-tests:
88100
runs-on: ubuntu-latest
@@ -157,9 +169,13 @@ jobs:
157169
run: mvn clean && mvn -B -U -T 2C install -Pquick
158170
- name: Package assembly
159171
run: mvn package -Passembly -DskipTests
160-
- name: Abort all other jobs
172+
- name: Abort all jobs
161173
if: failure() # ← fires only when the job is red
162-
uses: andymckay/cancel-action@0.4
174+
uses: potiuk/cancel-workflow-runs@master
175+
with:
176+
cancelMode: self
177+
notifyPRCancel: true
178+
token: ${{ secrets.GITHUB_TOKEN }}
163179

164180
e2e:
165181
runs-on: ubuntu-latest
@@ -192,6 +208,10 @@ jobs:
192208
- uses: actions/checkout@v2
193209
- name: check copyright header present
194210
run: scripts/checkCopyrightPresent.sh
195-
- name: Abort all other jobs
211+
- name: Abort all jobs
196212
if: failure() # ← fires only when the job is red
197-
uses: andymckay/cancel-action@0.4
213+
uses: potiuk/cancel-workflow-runs@master
214+
with:
215+
cancelMode: self
216+
notifyPRCancel: true
217+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)