Skip to content

Commit 6939d4f

Browse files
authored
Merge pull request #322 from jasoncouture/in_progress_build_cancellation
Cancel in progress PR builds when a new commit is pushed for that PR
2 parents e15954b + b15e713 commit 6939d4f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: .github/workflows/ci.yml

+5
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ on:
66
schedule:
77
- cron: "40 5 * * *" # every day at 5:40
88

9+
# This causes PR pushes to cancel previous builds, but does not impact cron jobs due to use of .ref, which will have the commit.
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
12+
cancel-in-progress: true
13+
914
jobs:
1015
check:
1116
name: Check

0 commit comments

Comments
 (0)