From afa497c5631f0f8e90315178a6268ff26195f128 Mon Sep 17 00:00:00 2001 From: artaasadi Date: Mon, 11 Nov 2024 18:55:21 +0100 Subject: [PATCH] fix: add workflow dispatch to web ui workflow --- .github/workflows/ui.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ui.yaml b/.github/workflows/ui.yaml index ca05d0c41..7398a25ce 100644 --- a/.github/workflows/ui.yaml +++ b/.github/workflows/ui.yaml @@ -2,6 +2,13 @@ name: Web UI Build on: workflow_dispatch: + inputs: + buildWebUI: + type: choice + description: "build web ui image" + options: + - "true" + default: "true" push: branches: - main # Only run this workflow on pushes to the main branch @@ -9,7 +16,7 @@ on: jobs: build: # Check if the last commit is a merge from the `ui-changes` branch - if: contains(github.event.head_commit.message, 'Merge pull request') && contains(github.event.head_commit.message, 'ui-changes') && github.event_name != 'pull_request' + if: (github.event.inputs.buildImportDemo == 'true') || (contains(github.event.head_commit.message, 'Merge pull request') && contains(github.event.head_commit.message, 'ui-changes') && github.event_name != 'pull_request') runs-on: ubuntu-latest environment: golang permissions: