Skip to content

Commit fcb4d97

Browse files
committed
Cancel superseded runs in deploy workflow
1 parent 87ceb25 commit fcb4d97

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/deploy-heroku.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ on:
55
branches:
66
- main
77

8+
# A deploy only ever ships the tip of main, so a run that a newer push has
9+
# already superseded is of no use.
10+
concurrency:
11+
group: ${{ github.workflow }}
12+
cancel-in-progress: true
13+
814
jobs:
915
deploy:
1016
name: Deploy to Heroku

0 commit comments

Comments
 (0)