Skip to content

Commit 04d0b9b

Browse files
author
Gabriel Erzse
committed
Separate concurrency groups for GitHub workflows
It seems that workflows cancel each other out if they are in the same concurrency group: https://github.com/orgs/community/discussions/41518 Try to separate four workflows that run on PRs into separate concurency groups. Ideally this will avoid the cancelation. They should still cancel runs from previous pushes, each in their own group.
1 parent 117207c commit 04d0b9b

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

.github/workflows/doctests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ permissions:
1010
contents: read
1111

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

1616
jobs:

.github/workflows/integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
- cron: "0 1 * * *"
1313

1414
concurrency:
15-
group: ${{ github.event.pull_request.number || github.ref }}
15+
group: ${{ github.event.pull_request.number || github.ref }}-integration
1616
cancel-in-progress: true
1717

1818
jobs:

.github/workflows/linter.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Format check on pull request
33
on: pull_request
44

55
concurrency:
6-
group: ${{ github.event.pull_request.number || github.ref }}
6+
group: ${{ github.event.pull_request.number || github.ref }}-linter
77
cancel-in-progress: true
88

99
jobs:

.github/workflows/spellcheck.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
pull_request:
55

66
concurrency:
7-
group: ${{ github.event.pull_request.number || github.ref }}
7+
group: ${{ github.event.pull_request.number || github.ref }}-spellcheck
88
cancel-in-progress: true
99

1010
jobs:

0 commit comments

Comments
 (0)