diff --git a/.github/workflows/deployment_test.yaml b/.github/workflows/deployment_test.yaml index 8f2a91e89..c3e7f8d66 100644 --- a/.github/workflows/deployment_test.yaml +++ b/.github/workflows/deployment_test.yaml @@ -16,6 +16,12 @@ on: # yamllint disable-line rule:truthy env: IMAGE_NAME: opendatacube/explorer +# When a PR is updated, cancel the jobs from the previous version. Merges +# do not define head_ref, so use run_id to never cancel those jobs. +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: deployment-image-test: runs-on: ubuntu-latest diff --git a/.github/workflows/doc.yaml b/.github/workflows/doc.yaml index fb8900547..3b339fbc6 100644 --- a/.github/workflows/doc.yaml +++ b/.github/workflows/doc.yaml @@ -9,6 +9,12 @@ on: permissions: pull-requests: write +# When a PR is updated, cancel the jobs from the previous version. Merges +# do not define head_ref, so use run_id to never cancel those jobs. +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: documentation-preview: runs-on: ubuntu-latest diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 13ac35eab..dd0e18069 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -17,6 +17,12 @@ on: env: IMAGE_NAME: opendatacube/explorer +# When a PR is updated, cancel the jobs from the previous version. Merges +# do not define head_ref, so use run_id to never cancel those jobs. +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: docker: runs-on: ubuntu-latest diff --git a/.github/workflows/scan.yml b/.github/workflows/scan.yml index 3381fae59..049966a09 100644 --- a/.github/workflows/scan.yml +++ b/.github/workflows/scan.yml @@ -7,6 +7,12 @@ on: env: IMAGE_NAME: opendatacube/explorer +# When a PR is updated, cancel the jobs from the previous version. Merges +# do not define head_ref, so use run_id to never cancel those jobs. +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: cve-scanner: runs-on: ubuntu-latest diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f68f5bc3e..4c4e4fb4c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,6 +16,12 @@ on: env: IMAGE_NAME: opendatacube/explorer +# When a PR is updated, cancel the jobs from the previous version. Merges +# do not define head_ref, so use run_id to never cancel those jobs. +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: integration-tests: runs-on: ubuntu-latest