diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 00400c8..3929b14 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -6,6 +6,10 @@ on: tags: - '*' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: update_docs: name: Build and Deploy Documentation @@ -14,11 +18,6 @@ jobs: run: shell: bash -l {0} steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.12.0 - with: - access_token: ${{ github.token }} - - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 96b6d12..f3edeca 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,6 +2,10 @@ name: Test Build on: workflow_dispatch +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: test: name: Tests on ${{ matrix.arch }} with Conda Python-${{ matrix.python }} @@ -28,11 +32,6 @@ jobs: python: "3.11" arch: MacOSX-x86_64 steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.12.0 - with: - access_token: ${{ github.token }} - - name: Checkout uses: actions/checkout@v4