Skip to content

Commit d418c2a

Browse files
committed
Add concurrency to workflows
1 parent aebf1b2 commit d418c2a

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

.github/workflows/check.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
- '**'
77
workflow_call:
88

9+
concurrency:
10+
group: ${{ github.workflow }}${{ github.ref_name != github.event.repository.default_branch && github.ref || github.run_id }}
11+
cancel-in-progress: ${{ github.ref_name != github.event.repository.default_branch }}
12+
913
jobs:
1014
check:
1115
runs-on: ubuntu-latest

.github/workflows/publish.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
tags:
66
- 'v*'
77

8+
9+
concurrency:
10+
group: ${{ github.workflow }}${{ github.ref_name != github.event.repository.default_branch && github.ref || github.run_id }}
11+
cancel-in-progress: ${{ github.ref_name != github.event.repository.default_branch }}
812
jobs:
913
check:
1014
uses: ./.github/workflows/check.yml

.github/workflows/repository-maintenance.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@ name: Repository Maintenance
22

33
on:
44
push:
5-
branches: [ 'main' ]
5+
branches: ['main']
66
workflow_dispatch:
77

8+
concurrency:
9+
group: ${{ github.workflow }}${{ github.ref_name != github.event.repository.default_branch && github.ref || github.run_id }}
10+
cancel-in-progress: ${{ github.ref_name != github.event.repository.default_branch }}
11+
812
jobs:
913
dependency-submission:
1014
name: Dependency Submission

0 commit comments

Comments
 (0)