diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c46d581c..27d504be 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,14 +3,21 @@ on: push: branches: - master + +concurrency: + group: >- + ${{ + github.workflow + }}-${{ + github.event.pull_request.number || github.sha + }} + cancel-in-progress: true + jobs: release: name: Prepare release runs-on: ubuntu-latest steps: - - name: 🛑 Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.9.1 - - name: ⬇️ Checkout Repo uses: actions/checkout@v3 diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index a5fbc215..24518cab 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -3,14 +3,20 @@ on: push: pull_request: +concurrency: + group: >- + ${{ + github.workflow + }}-${{ + github.event.pull_request.number || github.sha + }} + cancel-in-progress: true + jobs: validate: name: Validate runs-on: ubuntu-latest steps: - - name: 🛑 Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.9.1 - - name: ⬇️ Checkout Repo uses: actions/checkout@v3