Skip to content

Commit

Permalink
Add concurrency limits to artifact publication workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sd109 committed Nov 5, 2024
1 parent 26f7c09 commit 701ad09
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build-push-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ on:
tags:
- "*"

# Use the head ref for workflow concurrency, with cancellation
# This should mean that any previous workflows for a PR get cancelled when a new commit is pushed
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true

jobs:
publish_images:
uses: ./.github/workflows/build-push-images.yml
Expand Down

0 comments on commit 701ad09

Please sign in to comment.