Skip to content

Commit 03340d1

Browse files
committed
Add concurrency to actions
1 parent 2dd8cc9 commit 03340d1

4 files changed

Lines changed: 16 additions & 0 deletions

File tree

.github/workflows/build.yml

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

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

.github/workflows/chromatic.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#example-using-multiple-events-with-activity-types-or-configuration
99
pull_request:
1010

11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
1115
jobs:
1216
chromatic-deployment:
1317
runs-on: ubuntu-latest

.github/workflows/publish-rc.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
- '**/package.json'
1010
- '.yarn/versions/**'
1111

12+
concurrency:
13+
group: ${{ github.workflow }}
14+
cancel-in-progress: false
15+
1216
jobs:
1317
publish-rc:
1418
runs-on: ubuntu-latest

.github/workflows/version.yml

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

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

0 commit comments

Comments
 (0)