workflows/tests: enable concurrency limiting.

Let's cancel in-progress builds on the same PR.
This commit is contained in:
Mike McQuaid 2021-07-08 15:09:34 +01:00
parent 9814c8a569
commit a3f96689f0
No known key found for this signature in database
GPG Key ID: 3338A31AFDB1D829

View File

@ -1,12 +1,19 @@
name: CI name: CI
on: on:
push: push:
branches: branches:
- master - master
pull_request: pull_request:
env: env:
HOMEBREW_DEVELOPER: 1 HOMEBREW_DEVELOPER: 1
HOMEBREW_NO_AUTO_UPDATE: 1 HOMEBREW_NO_AUTO_UPDATE: 1
concurrency:
group: "${{ github.ref }}"
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs: jobs:
syntax: syntax:
if: github.repository == 'Homebrew/brew' if: github.repository == 'Homebrew/brew'