Skip to content

Commit 8b5d922

Browse files
committed
Cancel in-progress CI runs when new commits are pushed to a PR
Adds concurrency groups to test-suite and ts-test-suite workflows. Pushes to the same PR cancel previous runs, while pushes to main each run to completion.
1 parent 7c171a2 commit 8b5d922

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/test-suite.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
- main
1010
- kyoto
1111

12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_id || github.event.pull_request.number || github.ref }}
14+
cancel-in-progress: true
15+
1216
env:
1317
PANDOC_VERSION: "3.8.3"
1418

.github/workflows/ts-test-suite.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
- main
1010
- kyoto
1111

12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_id || github.event.pull_request.number || github.ref }}
14+
cancel-in-progress: true
15+
1216
env:
1317
PANDOC_VERSION: "3.8.3"
1418

0 commit comments

Comments
 (0)