Skip to content

Commit 2ce0c8d

Browse files
Keep every main run instead of dropping pending ones (#48)
1 parent b7651db commit 2ce0c8d

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ name: CI
1414
permissions:
1515
contents: read
1616

17+
# Each main run gets a group of its own, since GitHub drops a pending run of a group when a newer one queues.
1718
concurrency:
18-
group: ${{ github.workflow }}-${{ github.ref }}
19+
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_id || github.ref }}
1920
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
2021

2122
env:

‎.github/workflows/codeql.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ name: CodeQL
1313
permissions:
1414
contents: read
1515

16+
# Each main run gets a group of its own, since GitHub drops a pending run of a group when a newer one queues.
1617
concurrency:
17-
group: ${{ github.workflow }}-${{ github.ref }}
18+
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_id || github.ref }}
1819
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
1920

2021
jobs:

‎.github/workflows/coverage.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ name: Coverage
1010
permissions:
1111
contents: read
1212

13+
# Each main run gets a group of its own, since GitHub drops a pending run of a group when a newer one queues.
1314
concurrency:
14-
group: ${{ github.workflow }}-${{ github.ref }}
15+
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_id || github.ref }}
1516
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
1617

1718
env:

0 commit comments

Comments
 (0)