Skip to content

Commit 3ead778

Browse files
mcbartonvgvassilev
authored andcommitted
Only cancel in progress workflow runs for PRs
1 parent bc728d3 commit 3ead778

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/emscripten.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
- cron: '30 20 * * *' # Warning: Timezone dep - 20:00 is 1:00
1111

1212
concurrency:
13-
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
13+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
1414
cancel-in-progress: true
1515

1616
jobs:

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
- cron: '30 20 * * *' # Warning: Timezone dep - 20:00 is 1:00
1212

1313
concurrency:
14-
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
14+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
1515
cancel-in-progress: true
1616

1717
jobs:

0 commit comments

Comments
 (0)