File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -298,17 +298,16 @@ jobs:
298298 PR_HEAD="${STEPS_BACKPORT_BRANCH_OUTPUTS_NAME}"
299299 fi
300300
301- PR_URL=$(gh pr create \
302- --repo "${PR_REPO}" \
301+ PR_URL=$(GH_REPO="${PR_REPO}" gh pr create \
303302 --base "${MATRIX_BRANCH}" \
304303 --head "${PR_HEAD}" \
305304 --title "$PR_TITLE" \
306305 --assignee "${GITHUB_ACTOR}" \
307306 --draft \
308307 --body "$(echo -e "$BODY")")
309308
310- if gh label list --repo "${PR_REPO}" --json name --jq '[.[].name] | contains(["Auto-backport"])' | grep -q 'true'; then
311- gh pr edit "$PR_URL" --repo "${PR_REPO} " --add-label 'Auto-backport'
309+ if GH_REPO= "${PR_REPO}" gh label list --json name --jq '[.[].name] | contains(["Auto-backport"])' | grep -q 'true'; then
310+ GH_REPO="${PR_REPO}" gh pr edit "$PR_URL" --add-label 'Auto-backport'
312311 else
313312 echo "::notice::The 'Auto-backport' label does not exist on ${PR_REPO}. Consider adding it so that backport pull requests can be identified easily."
314313 fi
You can’t perform that action at this time.
0 commit comments