From d63006dcc031d70ca37b7ab2e999d4b0fba7e596 Mon Sep 17 00:00:00 2001 From: Wilmer Paulino Date: Mon, 17 Apr 2023 11:32:53 -0700 Subject: [PATCH] Cancel in-progress jobs on updated push At times, PRs can go through multiple pushes in a short amount of time, spawning a workflow run for each. Most of the time, there's no need to let the previous jobs running if the code itself has changed (e.g., via a force push), and we'd benefit from having those slots be used by other PRs/branches instead. --- .github/workflows/build.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b00bf47fe..8e02ec9da 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,6 +8,10 @@ on: branches-ignore: - master +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: build: strategy: -- 2.39.5