From 623e8490e9699ec6deb13958fc7e883ca9092cb8 Mon Sep 17 00:00:00 2001 From: Aniket Katkar Date: Fri, 27 Jun 2025 10:13:29 +0530 Subject: [PATCH] Fix the error in the template yml and add ability to trigger it from specific branch (#21998) --- .github/workflows/typescript-type-generation.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/typescript-type-generation.yml b/.github/workflows/typescript-type-generation.yml index cc1604a0517..9292f2f4008 100644 --- a/.github/workflows/typescript-type-generation.yml +++ b/.github/workflows/typescript-type-generation.yml @@ -4,9 +4,17 @@ on: pull_request: paths: - 'openmetadata-spec/src/main/resources/json/schema/**' + workflow_dispatch: + inputs: + branch: + description: 'Branch to run the workflow on' + required: true + default: 'main' + type: string jobs: generate-types: runs-on: ubuntu-latest - # Placeholder for future workflow steps - steps: [] \ No newline at end of file + steps: + - name: Placeholder + run: echo "Workflow triggered successfully on branch ${{ github.event.inputs.branch || github.ref_name }}" \ No newline at end of file