Skip to content

Commit ce3088c

Browse files
authored
chore: update cancel workflow action (#2766)
* chore: update cancel workflow action There is a build in function to solve this adapted out of db-ui/mono#3176 * Update default.yml
1 parent 26d5b08 commit ce3088c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/00-init.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ jobs:
99
name: Init
1010
runs-on: ubuntu-latest
1111
steps:
12-
- name: 🛑 Cancel Previous Runs
13-
uses: styfle/cancel-workflow-action@0.12.1
14-
1512
- name: ⬇ Checkout repo
1613
uses: actions/checkout@v4
1714

.github/workflows/default.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
branches:
88
- 'main'
99

10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
13+
1014
jobs:
1115
init:
1216
uses: ./.github/workflows/00-init.yml

0 commit comments

Comments
 (0)