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
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'