Skip to content

Commit 9bd9dbd

Browse files
authored
ci: add concurrency to cancel duplicate workflow runs (#815)
1 parent c660151 commit 9bd9dbd

4 files changed

Lines changed: 16 additions & 0 deletions

File tree

.github/workflows/ci-build_test.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
workflow_dispatch:
55
pull_request:
66

7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
9+
cancel-in-progress: true
10+
711
jobs:
812
build:
913
runs-on: ubuntu-latest

.github/workflows/ci-builder.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ on:
1818
- "scripts/ci-build.sh"
1919
- ".github/workflows/ci-builder.yaml"
2020

21+
concurrency:
22+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
23+
cancel-in-progress: true
24+
2125
jobs:
2226
login:
2327
runs-on: ubuntu-latest

.github/workflows/ci-docs_test.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
- docs/**
66
- .github/workflows/ci-docs_test.yaml
77

8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
10+
cancel-in-progress: true
11+
812
jobs:
913
test:
1014
runs-on: ubuntu-latest

.github/workflows/ci-lintformat.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
pull_request:
55
workflow_dispatch:
66

7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
9+
cancel-in-progress: true
10+
711
jobs:
812
ruff:
913
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)