From 55a94256c778ea24167dda5e9a8133bad08e7df1 Mon Sep 17 00:00:00 2001 From: "Zaiming (Stone) Shi" Date: Tue, 4 Jan 2022 16:25:10 +0100 Subject: [PATCH] ci: build mac package only when labeled with 'mac' --- .github/workflows/build_slim_packages.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_slim_packages.yaml b/.github/workflows/build_slim_packages.yaml index aaa56b30b..70fd58594 100644 --- a/.github/workflows/build_slim_packages.yaml +++ b/.github/workflows/build_slim_packages.yaml @@ -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: