From 60381a7fbc6b3e44e345ec5b7059e32dd6cfe599 Mon Sep 17 00:00:00 2001 From: Ewan Harris Date: Mon, 8 Jan 2024 21:26:29 +0000 Subject: [PATCH] ci(build): cancel in progress runs on PRs --- .github/workflows/build.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1467d37b7..2c8fa986b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,6 +3,10 @@ on: - pull_request - push +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/master' }} + jobs: Lint: runs-on: ubuntu-latest