From c6afacbb7d4cd6f937ca96a41f191fcd400a14e5 Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Thu, 21 Apr 2022 00:32:20 +0545 Subject: [PATCH] ci(github): add concurrency restrictions (#25163) --- .github/workflows/build.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 30b9b2dfba..9385c69a6a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,6 +4,13 @@ on: pull_request: branches: [ '**' ] +# When pushing a new commit we should +# cancel the previous test run to not +# consume more runners than we need to. +concurrency: + group: ${{ github.ref }} + cancel-in-progress: true + jobs: build-core: runs-on: ubuntu-latest