Skip to content

Commit b15e713

Browse files
committed
Cancel in progress PR builds when a new commit is pushed for that PR
1 parent bf4fcea commit b15e713

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.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)