diff --git a/.github/workflows/00-init-playground.yml b/.github/workflows/00-init-playground.yml index 2620c7c..c4d9df7 100644 --- a/.github/workflows/00-init-playground.yml +++ b/.github/workflows/00-init-playground.yml @@ -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 diff --git a/.github/workflows/00-init.yml b/.github/workflows/00-init.yml index 8184124..fad3fcc 100644 --- a/.github/workflows/00-init.yml +++ b/.github/workflows/00-init.yml @@ -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 diff --git a/.github/workflows/default.yml b/.github/workflows/default.yml index 2a5a04a..b8afcc4 100644 --- a/.github/workflows/default.yml +++ b/.github/workflows/default.yml @@ -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