Skip to content

Commit

Permalink
HEAT-417 cancel existing workflows (#258)
Browse files Browse the repository at this point in the history
* add concurrency defaults

* commenting is better
  • Loading branch information
james-jdgtl authored Dec 17, 2024
1 parent aebc308 commit afaf9fe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ permissions:
contents: read
packages: write

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
# This will cancel all running build/test/release pipelines that are not on the main branch
# If this pipeline is on the main branch, it will wait until existing runs complete
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

jobs:
helm_lint:
strategy:
Expand Down

0 comments on commit afaf9fe

Please sign in to comment.