From f4129b0986a0b6b867321db707e614039af41de7 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 370c6172..718510c7 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 6289032a..0afa0045 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