From 6ad8d7cdfc5bf1391c50fee285c5787f21e5221a Mon Sep 17 00:00:00 2001 From: Robert Jackson Date: Mon, 13 Dec 2021 14:58:17 -0500 Subject: [PATCH] Cancel stale workflows when starting a new one. With this change, we will cancel any pending and in-progress CI jobs when a new one is pushed. This will help a bit with the CI queue by preventing tons and tons of queued up CI jobs when pushing new commits to a pull request. --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7cbbfa83fc..b1874bc66d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,6 +14,10 @@ on: schedule: - cron: '0 3 * * *' # daily, at 3am +concurrency: + group: ci-${{ github.head_ref || github.ref }} + cancel-in-progress: true + jobs: linting: name: Linting