diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 43f0325c2ea..4b3dd91d98a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,6 +15,10 @@ defaults: # default to use bash shell shell: bash +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/master' }} + jobs: build: name: ${{ matrix.name }} @@ -46,9 +50,6 @@ jobs: EXCLUDE_OPTIONAL : true steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.11.0 - - name: Checkout uses: actions/checkout@v3.5.3 diff --git a/.github/workflows/ci-caches.yml b/.github/workflows/ci-caches.yml index cca0af8ee34..10d624e9c65 100644 --- a/.github/workflows/ci-caches.yml +++ b/.github/workflows/ci-caches.yml @@ -15,6 +15,10 @@ on: schedule: - cron: '0 12 * * 0' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/master' }} + jobs: data_cache: name: Cache GMT data @@ -22,11 +26,6 @@ jobs: runs-on: macOS-latest steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.11.0 - with: - access_token: ${{ github.token }} - - name: Install GMT run: brew install gmt @@ -79,11 +78,6 @@ jobs: runs-on: windows-latest steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.11.0 - with: - access_token: ${{ github.token }} - - name: Checkout uses: actions/checkout@v3.5.3 diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index a8be22c8e2e..117473aa95c 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -15,6 +15,10 @@ defaults: # default to use bash shell shell: bash +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/master' }} + jobs: docker: name: ${{ matrix.image }} @@ -49,9 +53,6 @@ jobs: - debian:sid # rolling release with latest versions steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.11.0 - - name: Checkout uses: actions/checkout@v3.5.3 diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index d0de513f8df..be2ad520f2c 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -22,6 +22,10 @@ defaults: # default to use bash shell shell: bash +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/master' }} + jobs: docs: name: ${{ matrix.name }} @@ -51,9 +55,6 @@ jobs: os: windows-latest steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.11.0 - - name: Checkout uses: actions/checkout@v3.5.3 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 50b3751e92c..66a3b583e48 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -23,6 +23,10 @@ defaults: # default to use bash shell shell: bash +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/master' }} + jobs: test: name: ${{ matrix.name }} @@ -51,9 +55,6 @@ jobs: os: windows-latest steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.11.0 - - name: Checkout uses: actions/checkout@v3.5.3