Skip to content

Commit 28f906e

Browse files
committed
update the workflows
1 parent 3860a50 commit 28f906e

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ on:
1414
- premajor
1515
- major
1616
required: true
17+
18+
concurrency:
19+
group: ${{ github.workflow }}-${{ github.ref }}
20+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
21+
1722
jobs:
1823
release:
1924
runs-on: ubuntu-latest
2025
steps:
21-
- name: Cancel Previous Runs
22-
uses: styfle/cancel-workflow-action@0.11.0
23-
with:
24-
access_token: ${{ github.token }}
25-
2626
# Checkout project repository
2727
- name: Checkout
2828
uses: actions/checkout@v3

.github/workflows/verify.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
branches:
99
- main
1010

11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
14+
1115
jobs:
1216
verify:
1317
name: Verify
@@ -16,11 +20,6 @@ jobs:
1620
CI: true
1721

1822
steps:
19-
- name: Cancel Previous Runs
20-
uses: styfle/cancel-workflow-action@0.11.0
21-
with:
22-
access_token: ${{ github.token }}
23-
2423
# Checkout project repository
2524
- name: Checkout
2625
uses: actions/checkout@v3

0 commit comments

Comments
 (0)