Skip to content

Commit 86252c0

Browse files
authored
Updating concurrency workflow (#244)
* Updating concurrency workflow * Adding concurrency config
1 parent 7d2e6bd commit 86252c0

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/build-m1-wheel.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ on:
1111
branches:
1212
- '**'
1313

14+
concurrency:
15+
group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}--${{ (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/') || startsWith(github.ref, 'refs/heads/long_lived/')) && github.sha || '' }}
16+
cancel-in-progress: true
17+
1418
jobs:
1519
build_wheels:
1620
name: Build wheel on Mac M1
@@ -19,12 +23,6 @@ jobs:
1923
fail-fast: false
2024

2125
steps:
22-
- name: Cancel previous runs on the same branch
23-
if: ${{ github.ref != 'refs/heads/main' }}
24-
uses: styfle/[email protected]
25-
with:
26-
access_token: ${{ github.token }}
27-
2826
- uses: Chia-Network/actions/clean-workspace@main
2927

3028
- name: Checkout code

0 commit comments

Comments
 (0)