|
25 | 25 | ${{ runner.os }}-jdk${{ matrix.jdk }}-maven- |
26 | 26 | - name: Check formatting |
27 | 27 | run: mvn -B formatter:validate impsort:check xml-format:xml-check |
28 | | - - name: Abort all other jobs |
| 28 | + - name: Abort all jobs |
29 | 29 | 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 }} |
31 | 35 |
|
32 | 36 | compile: |
33 | 37 | runs-on: ubuntu-latest |
|
46 | 50 | ${{ runner.os }}-jdk${{ matrix.jdk }}-maven- |
47 | 51 | - name: Compile (mvn clean install) |
48 | 52 | run: mvn -B clean install -DskipTests |
49 | | - - name: Abort all other jobs |
| 53 | + - name: Abort all jobs |
50 | 54 | 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 }} |
52 | 60 |
|
53 | 61 | build: |
54 | 62 | runs-on: ubuntu-latest |
|
80 | 88 | uses: scacap/action-surefire-report@v1.9.0 |
81 | 89 | with: |
82 | 90 | check_name: Test report - build - ${{ matrix.jdk }} |
83 | | - - name: Abort all other jobs |
| 91 | + - name: Abort all jobs |
84 | 92 | 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 }} |
86 | 98 |
|
87 | 99 | integration-tests: |
88 | 100 | runs-on: ubuntu-latest |
@@ -157,9 +169,13 @@ jobs: |
157 | 169 | run: mvn clean && mvn -B -U -T 2C install -Pquick |
158 | 170 | - name: Package assembly |
159 | 171 | run: mvn package -Passembly -DskipTests |
160 | | - - name: Abort all other jobs |
| 172 | + - name: Abort all jobs |
161 | 173 | 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 }} |
163 | 179 |
|
164 | 180 | e2e: |
165 | 181 | runs-on: ubuntu-latest |
@@ -192,6 +208,10 @@ jobs: |
192 | 208 | - uses: actions/checkout@v2 |
193 | 209 | - name: check copyright header present |
194 | 210 | run: scripts/checkCopyrightPresent.sh |
195 | | - - name: Abort all other jobs |
| 211 | + - name: Abort all jobs |
196 | 212 | 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