From: Wilmer Paulino Date: Mon, 17 Apr 2023 18:32:53 +0000 (-0700) Subject: Cancel in-progress jobs on updated push X-Git-Tag: v0.0.115~17^2 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=d63006dcc031d70ca37b7ab2e999d4b0fba7e596;p=rust-lightning 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. --- 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: