From a3f96689f03bbf9f822a43cc2170d03e0fcf9867 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Thu, 8 Jul 2021 15:09:34 +0100 Subject: [PATCH] workflows/tests: enable concurrency limiting. Let's cancel in-progress builds on the same PR. --- .github/workflows/tests.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index af9a27663b..1e389382f3 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,12 +1,19 @@ name: CI + on: push: branches: - master pull_request: + env: HOMEBREW_DEVELOPER: 1 HOMEBREW_NO_AUTO_UPDATE: 1 + +concurrency: + group: "${{ github.ref }}" + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: syntax: if: github.repository == 'Homebrew/brew'