Skip to content

Commit e794851

Browse files
committed
address review comments
1 parent aac0e60 commit e794851

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/manual_regenerate_models.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ jobs:
4040
BRANCH: ${{ inputs.docs_pr_number && format('update-models-docs-pr-{0}', inputs.docs_pr_number) || 'update-models-manual' }}
4141
TITLE: "${{ inputs.docs_pr_number && format('[TODO]: update generated models from apify-docs PR #{0}', inputs.docs_pr_number) || '[TODO]: update generated models from published OpenAPI spec' }}"
4242
ASSIGNEE: ${{ inputs.docs_pr_author || github.actor }}
43+
REVIEWER: vdusek
44+
LABEL: t-tooling
4345

4446
steps:
4547
- name: Validate inputs
@@ -65,9 +67,9 @@ jobs:
6567
run: |
6668
if git ls-remote --exit-code --heads origin "$BRANCH" > /dev/null 2>&1; then
6769
git fetch origin "$BRANCH"
68-
git checkout "$BRANCH"
70+
git switch "$BRANCH"
6971
else
70-
git checkout -b "$BRANCH"
72+
git switch -c "$BRANCH"
7173
fi
7274
7375
# Download the pre-built OpenAPI spec artifact from the apify-docs workflow run.
@@ -136,9 +138,9 @@ jobs:
136138
--body "$BODY" \
137139
--head "$BRANCH" \
138140
--base master \
139-
--reviewer vdusek \
141+
--reviewer "$REVIEWER" \
140142
--assignee "$ASSIGNEE" \
141-
--label t-tooling)
143+
--label "$LABEL")
142144
echo "Created PR: $PR_URL"
143145
echo "pr_url=$PR_URL" >> "$GITHUB_OUTPUT"
144146
echo "created=true" >> "$GITHUB_OUTPUT"

0 commit comments

Comments
 (0)