File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
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"
You can’t perform that action at this time.
0 commit comments