Skip to content

Commit

Permalink
chore: update cancel workflow action (#2766)
Browse files Browse the repository at this point in the history
* chore: update cancel workflow action

There is a build in function to solve this

adapted out of db-ui/mono#3176

* Update default.yml
  • Loading branch information
mfranzke authored Sep 19, 2024
1 parent 26d5b08 commit ce3088c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/00-init.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ jobs:
name: Init
runs-on: ubuntu-latest
steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.12.1

- name: ⬇ Checkout repo
uses: actions/checkout@v4

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
branches:
- 'main'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

jobs:
init:
uses: ./.github/workflows/00-init.yml
Expand Down

0 comments on commit ce3088c

Please sign in to comment.