Skip to content

Commit 2746331

Browse files
committed
Add concurrency to action
1 parent f0ddad7 commit 2746331

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/check-pr.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ on:
44
branches:
55
- main
66
jobs:
7-
build:
7+
check:
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
811
runs-on: ubuntu-latest
912
steps:
1013
- name: Checkout

.github/workflows/publish.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@ on:
66
- main
77

88
jobs:
9-
build:
9+
publish:
1010
runs-on: ubuntu-latest
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: false
1114
steps:
1215
- name: Checkout
1316
uses: actions/checkout@v4

0 commit comments

Comments
 (0)