From 4c1947a90a62fca85872019dd9fa08d20c6f8cfb Mon Sep 17 00:00:00 2001 From: mcflugen Date: Fri, 9 Aug 2024 10:44:11 -0600 Subject: [PATCH] cancel in progress builds with new push --- .github/workflows/docs.yml | 4 ++++ .github/workflows/test-notebooks.yml | 4 ++++ .github/workflows/test.yml | 12 +++--------- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 0ccedf2942..b1f0a24b3c 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -2,6 +2,10 @@ name: Documentation on: [push, pull_request] +concurrency: + group: ${{ github.ref }}-${{ github.workflow }} + cancel-in-progress: true + jobs: build: name: Build documentation diff --git a/.github/workflows/test-notebooks.yml b/.github/workflows/test-notebooks.yml index ad7fda0a1e..21f7a53a59 100644 --- a/.github/workflows/test-notebooks.yml +++ b/.github/workflows/test-notebooks.yml @@ -2,6 +2,10 @@ name: Notebooks on: [push, pull_request] +concurrency: + group: ${{ github.ref }}-${{ github.workflow }} + cancel-in-progress: true + jobs: build-and-test: name: Check notebooks diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cb1051422f..6e5e6aea86 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,15 +2,9 @@ name: Test on: [push, pull_request] -# on: -# push: -# paths: -# - "landlab/**" -# - "tests/**" -# pull_request: -# paths: -# - "landlab/**" -# - "tests/**" +concurrency: + group: ${{ github.ref }}-${{ github.workflow }} + cancel-in-progress: true jobs: build-and-test: