Skip to content

Commit 272d3e9

Browse files
committed
TMP: Tweak cancellation of workflows
1 parent 143671f commit 272d3e9

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

.github/workflows/apple.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ name: MacOS Python build
22

33
on:
44
push:
5+
branches: [main]
56
pull_request:
6-
schedule:
7-
- cron: "13 11 * * *"
7+
workflow_dispatch:
88

99
concurrency:
10-
group: ${{ github.workflow }}-${{ github.ref }}
10+
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.sha }}
1111
cancel-in-progress: true
1212

1313
jobs:

.github/workflows/linux.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ name: Linux Python build
22

33
on:
44
push:
5+
branches: [main]
56
pull_request:
6-
schedule:
7-
- cron: "13 11 * * *"
7+
workflow_dispatch:
88

99
concurrency:
10-
group: ${{ github.workflow }}-${{ github.ref }}
10+
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.sha }}
1111
cancel-in-progress: true
1212

1313
jobs:

.github/workflows/windows.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ name: Windows Python build
22

33
on:
44
push:
5+
branches: [main]
56
pull_request:
6-
schedule:
7-
- cron: "13 11 * * *"
7+
workflow_dispatch:
88

99
concurrency:
10-
group: ${{ github.workflow }}-${{ github.ref }}
10+
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.sha }}
1111
cancel-in-progress: true
1212

1313
jobs:

0 commit comments

Comments
 (0)