Skip to content

Commit a2dbf9d

Browse files
committed
[ci] Cancel CI jobs in progress
1 parent a138eda commit a2dbf9d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/test-kg.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
jobs:
1010
generate-kg-stmicro:
1111
runs-on: ubuntu-latest
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ matrix.family_group.name }}
14+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
1215
strategy:
1316
fail-fast: false
1417
matrix:
@@ -27,7 +30,6 @@ jobs:
2730
families: [STM32H7]
2831

2932
name: Update KG ${{ matrix.family_group.name }}
30-
3133
steps:
3234
- name: Check out Repository
3335
uses: actions/checkout@v4
@@ -94,6 +96,9 @@ jobs:
9496
name: Merge all KGs into one Artifact
9597
runs-on: ubuntu-latest
9698
needs: generate-kg-stmicro
99+
concurrency:
100+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-merge-kg-artifacts
101+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
97102
steps:
98103
- name: Check out Repository
99104
uses: actions/checkout@v4

0 commit comments

Comments
 (0)