Skip to content

Commit 701ad09

Browse files
committed
Add concurrency limits to artifact publication workflow
1 parent 26f7c09 commit 701ad09

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/build-push-artifacts.yml

+6
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ on:
99
tags:
1010
- "*"
1111

12+
# Use the head ref for workflow concurrency, with cancellation
13+
# This should mean that any previous workflows for a PR get cancelled when a new commit is pushed
14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.head_ref }}
16+
cancel-in-progress: true
17+
1218
jobs:
1319
publish_images:
1420
uses: ./.github/workflows/build-push-images.yml

0 commit comments

Comments
 (0)