Skip to content

Commit 248be96

Browse files
authored
Merge pull request #831 from atlanhq/BLDX-707
BLDX-707 | Add workflow_dispatch to format sync models workflow
2 parents 107e1e1 + 238b17d commit 248be96

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

.github/workflows/format-sync-models.yaml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,29 @@ on:
66
- main
77
paths:
88
- "pyatlan_v9/model/assets/**"
9+
workflow_dispatch:
10+
inputs:
11+
branch:
12+
description: "Branch name to format (e.g. sync-models-20260308-211204)"
13+
required: true
14+
type: string
915

1016
permissions:
1117
contents: write
1218

1319
jobs:
1420
format:
15-
# Only run on automated sync branches
16-
if: startsWith(github.head_ref, 'sync-models-')
21+
# Only run on automated sync branches (auto for PRs, manual via input)
22+
if: >-
23+
github.event_name == 'workflow_dispatch' ||
24+
startsWith(github.head_ref, 'sync-models-')
1725
runs-on: ubuntu-latest
1826

1927
steps:
20-
- name: Checkout PR branch
28+
- name: Checkout branch
2129
uses: actions/checkout@v5
2230
with:
23-
ref: ${{ github.head_ref }}
31+
ref: ${{ github.event.inputs.branch || github.head_ref }}
2432
token: ${{ secrets.ORG_PAT_GITHUB }}
2533
fetch-depth: 1
2634

0 commit comments

Comments
 (0)