Skip to content

Commit afd69c1

Browse files
committed
avoid cancel-in-progress on main branch
1 parent 124c66b commit afd69c1

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
concurrency:
1111
group: ${{ github.workflow }}-${{ github.ref }}
12-
cancel-in-progress: true
12+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
1313

1414
env:
1515
RUSTFLAGS: >-

.github/workflows/cargo-audit.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212

1313
concurrency:
1414
group: ${{ github.workflow }}-${{ github.ref }}
15-
cancel-in-progress: true
15+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
1616

1717
jobs:
1818
cargo_audit:

.github/workflows/code-formatting-check.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
concurrency:
1111
group: ${{ github.workflow }}-${{ github.ref }}
12-
cancel-in-progress: true
12+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
1313

1414
jobs:
1515
cargo-fmt:

.github/workflows/docs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
concurrency:
1111
group: ${{ github.workflow }}-${{ github.ref }}
12-
cancel-in-progress: true
12+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
1313

1414
env:
1515
RUSTDOCFLAGS: -D warnings

.github/workflows/github-dependency-review.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
concurrency:
99
group: ${{ github.workflow }}-${{ github.ref }}
10-
cancel-in-progress: true
10+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
1111

1212
jobs:
1313
dependency-review:

.github/workflows/lint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
concurrency:
1111
group: ${{ github.workflow }}-${{ github.ref }}
12-
cancel-in-progress: true
12+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
1313

1414
jobs:
1515
clippy:

0 commit comments

Comments
 (0)