Skip to content

Commit 86bf097

Browse files
committed
New fast fail
1 parent 29d9165 commit 86bf097

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ on:
1515
tags:
1616
- "v[0-9]+.[0-9]+.[0-9]+"
1717

18+
concurrency:
19+
group: ${{ github.workflow }}-${{ github.ref }}
20+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
21+
1822
jobs:
1923
build:
2024
name: Build ${{ matrix.target.name }} package

.github/workflows/rust.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ on:
1818
branches: [main]
1919
merge_group:
2020

21+
concurrency:
22+
group: ${{ github.workflow }}-${{ github.ref }}
23+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
24+
2125
jobs:
2226
cargo-checks:
2327
permissions:
@@ -65,11 +69,3 @@ jobs:
6569
if: matrix.action == 'nextest'
6670
run: |
6771
cargo nextest run --no-tests pass --cargo-profile ci-dev --workspace --all-features --all-targets --locked
68-
69-
- name: Fast fail
70-
if: failure()
71-
uses: vishnudxb/cancel-workflow@v1.2
72-
with:
73-
repo: hack-ink/<NAME>
74-
workflow_id: ${{ github.run_id }}
75-
access_token: ${{ github.token }}

.github/workflows/staging.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ env:
1313
on:
1414
workflow_dispatch:
1515

16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.ref }}
18+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
19+
1620
jobs:
1721
build:
1822
name: Build ${{ matrix.target.name }} package

0 commit comments

Comments
 (0)