diff --git a/.github/workflows/docker-amd64.yml b/.github/workflows/docker-amd64.yml index c41084edb6..5ae7252cca 100644 --- a/.github/workflows/docker-amd64.yml +++ b/.github/workflows/docker-amd64.yml @@ -43,6 +43,11 @@ on: - "requirements-dev.txt" workflow_dispatch: +concurrency: + # only cancel in-progress jobs or runs for the current workflow - matches against branch & tags + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: build-test-amd64-images: name: Build and test amd64 Docker Images diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index fd0b08b576..edc73b5bcd 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -43,9 +43,15 @@ on: - "requirements-dev.txt" workflow_dispatch: +concurrency: + # only cancel in-progress jobs or runs for the current workflow - matches against branch & tags + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: build-test-publish-images: name: Build, test, and publish Docker Images + if: github.event_name != 'schedule' || (github.event_name == 'schedule' && github.repository == 'jupyter/docker-stacks') runs-on: ubuntu-latest permissions: contents: write diff --git a/.github/workflows/sphinx.yml b/.github/workflows/sphinx.yml index 95ecc1d70f..5909d91140 100644 --- a/.github/workflows/sphinx.yml +++ b/.github/workflows/sphinx.yml @@ -26,6 +26,7 @@ on: jobs: build-docs: name: Build Sphinx Documentation + if: github.event_name != 'schedule' || (github.event_name == 'schedule' && github.repository == 'jupyter/docker-stacks') runs-on: ubuntu-latest permissions: contents: write