Skip to content

Commit

Permalink
Merge pull request #1936 from opengovern/fix-web-ui
Browse files Browse the repository at this point in the history
fix: add workflow dispatch to web ui workflow
  • Loading branch information
artaasadi authored Nov 11, 2024
2 parents c05be4f + afa497c commit 2aaf22c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/ui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,21 @@ 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

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:
Expand Down

0 comments on commit 2aaf22c

Please sign in to comment.