Merge pull request #6633 from zmstone/build-mac-package-only-when-labled

ci: build mac package only when labeled with 'mac'
This commit is contained in:
Zaiming (Stone) Shi 2022-01-04 17:19:37 +01:00 committed by GitHub
commit 9b6f99f738
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 1 deletions

View File

@ -10,6 +10,16 @@ on:
- v*
- e*
pull_request:
# GitHub pull_request action is by default triggered when
# opened reopened or synchronize,
# we add labeled and unlabeled to the list because
# the mac job dpends on the PR having a 'Mac' label
types:
- labeled
- unlabeled
- opened
- reopened
- synchronize
workflow_dispatch:
jobs:
@ -47,7 +57,7 @@ jobs:
path: _packages/**/*.zip
mac:
if: contains(github.event.pull_request.labels.*.name, 'Mac')
strategy:
fail-fast: false
matrix: