forked from open-telemetry/opentelemetry-collector
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[chore] Do not include unreleased versions in the release titles
Update release scripts to not include unreleased version in the release titles
- Loading branch information
Showing
2 changed files
with
16 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,17 +19,17 @@ if [ "${CANDIDATE_STABLE}" == "" ] && [ "${CANDIDATE_BETA}" == "" ]; then | |
exit 1 | ||
fi | ||
|
||
STABLE="${CANDIDATE_STABLE}" | ||
if [ "${STABLE}" == "" ]; then | ||
STABLE="${CURRENT_STABLE}" | ||
RELEASE_VERSION=v${CANDIDATE_STABLE}/v${CANDIDATE_BETA} | ||
if [ "${CANDIDATE_STABLE}" == "" ]; then | ||
RELEASE_VERSION="v${CANDIDATE_BETA}" | ||
fi | ||
BETA="${CANDIDATE_BETA}" | ||
if [ "${BETA}" == "" ]; then | ||
BETA="${CURRENT_BETA}" | ||
if [ "${CANDIDATE_BETA}" == "" ]; then | ||
RELEASE_VERSION="v${CANDIDATE_STABLE}" | ||
fi | ||
RELEASE_VERSION=v${STABLE}/v${BETA} | ||
|
||
make chlog-update VERSION="${RELEASE_VERSION}" | ||
COMMANDS="- make chlog-update VERSION=${RELEASE_VERSION}" | ||
git config user.name opentelemetrybot | ||
git config user.email [email protected] | ||
BRANCH="prepare-release-prs/${CANDIDATE_BETA}" | ||
|
@@ -39,15 +39,17 @@ git commit -m "Changelog update ${RELEASE_VERSION}" | |
|
||
if [ "${CANDIDATE_STABLE}" != "" ]; then | ||
make prepare-release GH=none PREVIOUS_VERSION="${CURRENT_STABLE}" RELEASE_CANDIDATE="${CANDIDATE_STABLE}" MODSET=stable | ||
COMMANDS+=" | ||
- make prepare-release GH=none PREVIOUS_VERSION=${CURRENT_STABLE} RELEASE_CANDIDATE=${CANDIDATE_STABLE} MODSET=stable" | ||
fi | ||
if [ "${CANDIDATE_BETA}" != "" ]; then | ||
make prepare-release GH=none PREVIOUS_VERSION="${CURRENT_BETA}" RELEASE_CANDIDATE="${CANDIDATE_BETA}" MODSET=beta | ||
COMMANDS+=" | ||
- make prepare-release GH=none PREVIOUS_VERSION=${CURRENT_BETA} RELEASE_CANDIDATE=${CANDIDATE_BETA} MODSET=beta" | ||
fi | ||
git push origin "${BRANCH}" | ||
|
||
gh pr create --title "[chore] Prepare release ${RELEASE_VERSION}" --body " | ||
The following commands were run to prepare this release: | ||
- make chlog-update VERSION=${RELEASE_VERSION} | ||
- make prepare-release GH=none PREVIOUS_VERSION=${CURRENT_STABLE} RELEASE_CANDIDATE=${CANDIDATE_STABLE} MODSET=stable | ||
- make prepare-release GH=none PREVIOUS_VERSION=${CURRENT_BETA} RELEASE_CANDIDATE=${CANDIDATE_BETA} MODSET=beta | ||
${COMMANDS} | ||
" |