Skip to content

Commit b88168e

Browse files
committed
fix(ci): adding ref input
1 parent b1711ca commit b88168e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/update-stores.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
targetRepo:
99
description: 'Target repository for workflow_dispatch'
1010
default: 'all'
11+
targetRef:
12+
description: 'Target ref for workflow_dispatch'
13+
default: 'latest'
1114

1215
jobs:
1316
create_pull_request:
@@ -17,7 +20,7 @@ jobs:
1720
if: github.event_name == 'workflow_dispatch'
1821
id: set-local-env-vars
1922
run: |
20-
echo "TARGET_REPO_BRANCH=${{ inputs.targetRepo }}" | tee -a $GITHUB_ENV
23+
echo "TARGET_REPO_BRANCH=${{ inputs.targetRef }}" | tee -a $GITHUB_ENV
2124
echo "KFUTIL_ARG=${{ inputs.targetRepo }}" | tee -a $GITHUB_ENV
2225
- name: Set TARGET_REPO_BRANCH from repository_dispatch input
2326
if: github.event_name == 'repository_dispatch'
@@ -98,7 +101,7 @@ jobs:
98101
- name: Run Python Script
99102
working-directory: ./tools/store-type-merge
100103
run: |
101-
python main.py --repo-name ${{ env.KFUTIL_ARG }}
104+
python main.py --repo-name ${{ env.KFUTIL_ARG }} --ref ${{ env.TARGET_REPO_BRANCH }}
102105
cat store_types.json
103106
env:
104107
GITHUB_TOKEN: ${{ secrets.SDK_SYNC_PAT }}

0 commit comments

Comments
 (0)