Skip to content

Commit

Permalink
Add cancel-in-progress
Browse files Browse the repository at this point in the history
Set cancel-in-progress to true so that in scenarios where commits are
pushed fast or multiple tags are added at once we only run the most
recent pipeline.

Signed-off-by: Colin Wilk <[email protected]>
  • Loading branch information
kliwniloc committed Oct 31, 2024
1 parent ddd0665 commit f4da4ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/helm_pr_deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ jobs:
environment:
name: k8s
url: https://pr${{ github.event.pull_request.number }}.artemis-k8s.ase.cit.tum.de
concurrency: k8s-pr${{ github.event.pull_request.number }}
concurrency:
group: k8s-pr${{ github.event.pull_request.number }}
cancel-in-progress: true

steps:
- name: Checkout repository
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/helm_pr_deployment_delete.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ jobs:
environment:
name: k8s
url: https://pr${{ github.event.pull_request.number }}.artemis-k8s.ase.cit.tum.de

concurrency: k8s-pr${{ github.event.pull_request.number }}
concurrency:
group: k8s-pr${{ github.event.pull_request.number }}
cancel-in-progress: true

steps:
- name: Setup Helm
Expand Down

0 comments on commit f4da4ed

Please sign in to comment.