Skip to content

Commit a1d5398

Browse files
authored
build: Cancel in-progress job to free up concurrent groups (#5899)
1 parent b4edb16 commit a1d5398

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ on:
1111
description: If the commit you want to test isn't the head of a branch, provide its SHA here
1212
required: false
1313

14+
# Cancel in progress workflows on pull_requests.
15+
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
18+
cancel-in-progress: true
19+
1420
env:
1521
# We pin the exact version to enforce reproducable builds with node + npm.
1622
DEFAULT_NODE_VERSION: '16.15.1'

0 commit comments

Comments
 (0)