From 0ffbf710b2ea395641359013638f1a9b1f8d974a Mon Sep 17 00:00:00 2001 From: William Jamieson Date: Fri, 10 Nov 2023 13:24:54 -0500 Subject: [PATCH] Add concurrency cancels to build and weekly cron This way pushing new commits to a PR auto cancels the old jobs. --- .github/workflows/build.yml | 4 ++++ .github/workflows/ci_cron.yml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 370c6172a..718510c75 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,6 +6,10 @@ on: pull_request: workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: build: uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish.yml@v1 diff --git a/.github/workflows/ci_cron.yml b/.github/workflows/ci_cron.yml index 6289032a8..0afa0045f 100644 --- a/.github/workflows/ci_cron.yml +++ b/.github/workflows/ci_cron.yml @@ -6,6 +6,10 @@ on: - cron: "0 0 * * 1" workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: test: uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v1