Merge pull request #11681 from MikeMcQuaid/concurrency

workflows/tests: enable concurrency limiting.
This commit is contained in:
Mike McQuaid 2021-07-08 17:04:08 +01:00 committed by GitHub
commit 015c8bfe83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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'