Skip to content

Commit 110cc84

Browse files
charliermarshzanieb
authored andcommitted
Cancel in-flight builds on PR update (astral-sh#282)
1 parent 2359295 commit 110cc84

File tree

4 files changed

+19
-1
lines changed

4 files changed

+19
-1
lines changed

.github/workflows/apple.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ on:
66
pull_request:
77
schedule:
88
- cron: '13 11 * * *'
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.sha }}
12+
cancel-in-progress: true
13+
914
jobs:
1015
pythonbuild:
1116
runs-on: 'macos-13'

.github/workflows/check.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
21
name: Check
32

43
on:
54
push:
65
pull_request:
76

7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.sha }}
9+
cancel-in-progress: true
10+
811
jobs:
912
check:
1013
runs-on: "ubuntu-latest"

.github/workflows/linux.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ on:
66
pull_request:
77
schedule:
88
- cron: '13 11 * * *'
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.sha }}
12+
cancel-in-progress: true
13+
914
jobs:
1015
pythonbuild:
1116
runs-on: ubuntu-22.04

.github/workflows/windows.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ on:
66
pull_request:
77
schedule:
88
- cron: '13 11 * * *'
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.sha }}
12+
cancel-in-progress: true
13+
914
jobs:
1015
pythonbuild:
1116
runs-on: 'windows-2019'

0 commit comments

Comments
 (0)