Skip to content

Commit 42b83a7

Browse files
authored
[chore] attempt to apply gh workaround (#12134)
This following the workaround suggested in cli/cli#6485 Fixes #12129 --------- Signed-off-by: Alex Boten <[email protected]>
1 parent 52d1414 commit 42b83a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/scripts/release-prepare-release.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ if [ "${CANDIDATE_BETA}" != "" ]; then
3939
COMMANDS+="
4040
- make prepare-release PREVIOUS_VERSION=${CURRENT_BETA_ESCAPED} RELEASE_CANDIDATE=${CANDIDATE_BETA} MODSET=beta"
4141
fi
42-
git push origin "${BRANCH}"
42+
git push --set-upstream origin "${BRANCH}"
4343

4444
# Use OpenTelemetryBot account to create PR, allowing workflows to run
4545
# The title must match the checks in check-merge-freeze.yml
46-
gh pr create --title "[chore] Prepare release ${RELEASE_VERSION}" --body "
46+
gh pr create --head "$(git branch --show-current)" --title "[chore] Prepare release ${RELEASE_VERSION}" --body "
4747
The following commands were run to prepare this release:
4848
${COMMANDS}
4949
"

0 commit comments

Comments
 (0)