Skip to content

Commit 947c460

Browse files
committed
prevent workflow running twice on PRs from develop into main
1 parent 2afcd58 commit 947c460

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/main.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
name: Py 3.10, 3.11, 3.12 | Windows Mac Linux
22

33
on:
4-
push:
4+
pull_request:
55
branches:
66
- main
77
- develop
8-
pull_request:
8+
push:
99
branches:
1010
- main
1111
- develop
1212

13+
concurrency:
14+
group: ${{ github.event.pull_request.number }} # Use the pull request number as the concurrency group
15+
cancel-in-progress: true # Cancel any in-progress jobs for the same group
16+
1317
jobs:
1418
set-os:
1519
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)