Skip to content

Commit

Permalink
chore: update cancel workflow action (#104)
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 00-init.yml

* Update default.yml

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
mfranzke and github-actions[bot] authored Sep 19, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent feca567 commit b6cd644
Showing 3 changed files with 4 additions and 6 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/00-init-playground.yml
Original file line number Diff line number Diff line change
@@ -8,9 +8,6 @@ jobs:
name: Init Playground
runs-on: ubuntu-latest
steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.11.0

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

3 changes: 0 additions & 3 deletions .github/workflows/00-init.yml
Original file line number Diff line number Diff line change
@@ -8,9 +8,6 @@ jobs:
name: Init
runs-on: ubuntu-latest
steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.11.0

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

4 changes: 4 additions & 0 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
@@ -2,6 +2,10 @@ name: Test and deploy to GitHub Pages

on: [push]

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

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

0 comments on commit b6cd644

Please sign in to comment.