From 1c75fe24adc1421dcd676f9b99d41ee7ee569126 Mon Sep 17 00:00:00 2001 From: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com> Date: Mon, 15 May 2023 15:55:36 +0200 Subject: [PATCH] add support for the 'labeled' type --- .../azure-static-web-apps-ambitious-stone-0033b3603.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/.github/workflows/azure-static-web-apps-ambitious-stone-0033b3603.yml b/src/Umbraco.Web.UI.Client/.github/workflows/azure-static-web-apps-ambitious-stone-0033b3603.yml index 0de6b5167d..f54d37f3b1 100644 --- a/src/Umbraco.Web.UI.Client/.github/workflows/azure-static-web-apps-ambitious-stone-0033b3603.yml +++ b/src/Umbraco.Web.UI.Client/.github/workflows/azure-static-web-apps-ambitious-stone-0033b3603.yml @@ -5,7 +5,7 @@ on: branches: - main pull_request: - types: [opened, synchronize, reopened, closed] + types: [opened, synchronize, reopened, closed, labeled] branches: - main @@ -14,7 +14,7 @@ env: jobs: build_and_deploy_job: - if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed' && contains(github.event.pull_request.labels, 'storybook')) + if: github.event_name == 'push' || (github.event_name == 'pull_request' && ((github.event.action == 'labeled' && github.event.label.name == 'storybook') || (github.event.action != 'closed' && contains(github.event.pull_request.labels.*.name, 'storybook')))) runs-on: ubuntu-latest name: Build and Deploy Job steps: @@ -37,7 +37,7 @@ jobs: ###### End of Repository/Build Configurations ###### close_pull_request_job: - if: github.event_name == 'pull_request' && github.event.action == 'closed' && contains(github.event.pull_request.labels, 'storybook') + if: github.event_name == 'pull_request' && github.event.action == 'closed' && contains(github.event.pull_request.labels.*.name, 'storybook') runs-on: ubuntu-latest name: Close Pull Request Job steps: