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:
commit
9b6f99f738
|
@ -10,6 +10,16 @@ on:
|
||||||
- v*
|
- v*
|
||||||
- e*
|
- e*
|
||||||
pull_request:
|
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:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -47,7 +57,7 @@ jobs:
|
||||||
path: _packages/**/*.zip
|
path: _packages/**/*.zip
|
||||||
|
|
||||||
mac:
|
mac:
|
||||||
|
if: contains(github.event.pull_request.labels.*.name, 'Mac')
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
|
|
Loading…
Reference in New Issue