Skip to content

Commit d26aa3b

Browse files
committed
Cancel in-progress jobs for new pushes
Signed-off-by: Ludvig Liljenberg <[email protected]>
1 parent 8d0cb80 commit d26aa3b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/ValidatePullRequest.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ on:
77
branches: [main, "release/**"]
88
merge_group:
99

10+
# Cancels old running job if a new one is triggered (e.g. by a push onto the same branch).
11+
# This will cancel dependent jobs as well, such as dep_rust and dep_fuzzing
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
1016
permissions:
1117
id-token: write
1218
contents: read
@@ -42,6 +48,7 @@ jobs:
4248
secrets: inherit
4349
with:
4450
docs_only: ${{needs.docs-pr.outputs.docs-only}}
51+
4552
fuzzing:
4653
needs:
4754
- docs-pr
@@ -50,6 +57,7 @@ jobs:
5057
max_total_time: 300 # 5 minutes in seconds
5158
docs_only: ${{needs.docs-pr.outputs.docs-only}}
5259
secrets: inherit
60+
5361
spelling:
5462
name: spell check with typos
5563
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)