Skip to content

Commit 9725d8f

Browse files
committed
ci: assign workflow concurrency groups for prs
Assign concurrency groups for PR based workflows to prevent issues with users submitting multiple pushes in a short time. Signed-off-by: Randolph Sapp <rs@ti.com>
1 parent 149474e commit 9725d8f

7 files changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/check-files.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on: # yamllint disable-line rule:truthy
77
paths:
88
- 'source/**'
99

10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.event.number }}
12+
cancel-in-progress: true
13+
1014
defaults:
1115
run:
1216
shell: bash

.github/workflows/check_toc_txt.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on: # yamllint disable-line rule:truthy
88
- 'source/**'
99
- 'configs/*/*_toc.txt'
1010

11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.event.number }}
13+
cancel-in-progress: true
14+
1115
defaults:
1216
run:
1317
shell: bash

.github/workflows/commit-check.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on: # yamllint disable-line rule:truthy
44
pull_request:
55
branches: ['master']
66

7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.event.number }}
9+
cancel-in-progress: true
10+
711
permissions:
812
contents: read
913

.github/workflows/component-owners.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on: # yamllint disable-line rule:truthy
99
pull_request_target:
1010
branches: [master]
1111

12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.event.number }}
14+
cancel-in-progress: true
15+
1216
permissions:
1317
contents: read
1418
pull-requests: write # Required to set reviewers

.github/workflows/rstcheck.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on: # yamllint disable-line rule:truthy
77
paths:
88
- 'source/**'
99

10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.event.number }}
12+
cancel-in-progress: true
13+
1014
defaults:
1115
run:
1216
shell: bash

.github/workflows/vale.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: "vale"
33

44
on: [pull_request] # yamllint disable-line rule:truthy
55

6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.event.number }}
8+
cancel-in-progress: true
9+
610
defaults:
711
run:
812
shell: bash

.github/workflows/yamllint.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on: # yamllint disable-line rule:truthy
88
- '**.yaml'
99
- '**.yml'
1010

11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.event.number }}
13+
cancel-in-progress: true
14+
1115
permissions:
1216
contents: read
1317

0 commit comments

Comments
 (0)