Skip to content

Commit

Permalink
GitHub: cancel jobs for previous pushes of PR
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
guggero committed Jan 23, 2025
1 parent 2f72da0 commit 415e589
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ on:
branches:
- "*"

concurrency:
# Cancel any previous workflows if they are from a PR or push.
group: ${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

defaults:
run:
shell: bash

env:
# If you change this value, please change it in the following files as well:
# /Dockerfile
Expand Down

0 comments on commit 415e589

Please sign in to comment.