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: