Skip to content

Commit 3ff8bcc

Browse files
charliermarshzanieb
authored andcommitted
Only cancel in-progress runs on PRs (astral-sh#286)
1 parent 757ccf1 commit 3ff8bcc

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

.github/workflows/apple.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
concurrency:
1111
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.sha }}
12-
cancel-in-progress: true
12+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
1313

1414
jobs:
1515
pythonbuild:

.github/workflows/check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
concurrency:
88
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.sha }}
9-
cancel-in-progress: true
9+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
1010

1111
jobs:
1212
check:

.github/workflows/linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
concurrency:
1111
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.sha }}
12-
cancel-in-progress: true
12+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
1313

1414
jobs:
1515
pythonbuild:

.github/workflows/windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
concurrency:
1111
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.sha }}
12-
cancel-in-progress: true
12+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
1313

1414
jobs:
1515
pythonbuild:

0 commit comments

Comments
 (0)