From 8f0c3e93801900c566b9d1c29a068338afa88c97 Mon Sep 17 00:00:00 2001 From: Alex Boten <223565+codeboten@users.noreply.github.com> Date: Mon, 20 Jan 2025 15:57:27 -0800 Subject: [PATCH] [chore] apply gh client fix (#37354) This is the same as was done in core in https://github.com/open-telemetry/opentelemetry-collector/pull/12134 Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com> --- .github/workflows/scripts/release-prepare-release.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/scripts/release-prepare-release.sh b/.github/workflows/scripts/release-prepare-release.sh index 4f6ebb155aec..5c13788015a2 100755 --- a/.github/workflows/scripts/release-prepare-release.sh +++ b/.github/workflows/scripts/release-prepare-release.sh @@ -62,9 +62,9 @@ git add . git commit -m "make gotidy changes ${CANDIDATE_BETA}" || (echo "no gotidy changes to commit") make otelcontribcol -git push origin "${BRANCH}" +git push --set-upstream origin "${BRANCH}" -gh pr create --title "[chore] Prepare release ${CANDIDATE_BETA}" --body " +gh pr create --head "$(git branch --show-current)" --title "[chore] Prepare release ${CANDIDATE_BETA}" --body " The following commands were run to prepare this release: - make chlog-update VERSION=v${CANDIDATE_BETA} - sed -i.bak s/${CURRENT_BETA_ESCAPED}/${CANDIDATE_BETA}/g versions.yaml