Skip to content

Commit 415e589

Browse files
committed
GitHub: cancel jobs for previous pushes of PR
This takes over two more settings we have in the lnd repo. The first is to cancel existing CI runs for the same PR if it is pushed again before the previous run has completed. The second is just for consistency, to make sure all shells are bash shells.
1 parent 2f72da0 commit 415e589

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@ on:
88
branches:
99
- "*"
1010

11+
concurrency:
12+
# Cancel any previous workflows if they are from a PR or push.
13+
group: ${{ github.event.pull_request.number || github.ref }}
14+
cancel-in-progress: true
15+
16+
defaults:
17+
run:
18+
shell: bash
19+
1120
env:
1221
# If you change this value, please change it in the following files as well:
1322
# /Dockerfile

0 commit comments

Comments
 (0)