diff --git a/.github/workflows/docker-amd64.yml b/.github/workflows/docker-amd64.yml index 2b3e5932ff..8730aaf7c7 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 9f9511b945..bc753dae77 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 77d943dc1c..28c034698d 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