Skip to content

Commit 6eab709

Browse files
authored
Merge pull request #1413 from db-ui/chore-cancel-workflow
chore: update cancel workflow action
2 parents a6b4a47 + 0d67f89 commit 6eab709

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/default.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,11 @@ on:
77
branches:
88
- "main"
99

10-
jobs:
11-
cancel-previous:
12-
name: Cancel Previous Runs
13-
runs-on: ubuntu-latest
14-
steps:
15-
- name: 🛑 Cancel Previous Runs
16-
uses: styfle/[email protected]
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
1713

14+
jobs:
1815
build-examples:
1916
name: Build example
2017
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)