From b951cda08f0b1dd53988c1f426f577557159c353 Mon Sep 17 00:00:00 2001 From: Diogo Santos Date: Wed, 17 Dec 2025 13:57:19 +0000 Subject: [PATCH 1/2] fix typo in workflow --- .github/workflows/prepare-minor-full-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/prepare-minor-full-release.yml b/.github/workflows/prepare-minor-full-release.yml index 8599728fa..173eb1fb8 100644 --- a/.github/workflows/prepare-minor-full-release.yml +++ b/.github/workflows/prepare-minor-full-release.yml @@ -299,4 +299,4 @@ jobs: **Note:** This workflow is for minor releases (vX.Y.0). Patch releases (vX.Y.Z) use a separate workflow. EOF - fi< + fi From 07891a827364ffb58a9ef55b9060994502d9dec7 Mon Sep 17 00:00:00 2001 From: Diogo Santos Date: Wed, 17 Dec 2025 14:21:42 +0000 Subject: [PATCH 2/2] update supported version --- .../workflows/prepare-minor-full-release.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/prepare-minor-full-release.yml b/.github/workflows/prepare-minor-full-release.yml index 173eb1fb8..64d9a4e3c 100644 --- a/.github/workflows/prepare-minor-full-release.yml +++ b/.github/workflows/prepare-minor-full-release.yml @@ -133,15 +133,28 @@ jobs: # Replace v.-rc with v. sed -i -E "s/^(var version = )\"v${MAJOR}\.${MINOR}-rc\"/\1\"${VERSION_IN_CODE}\"/" "$VERSION_FILE" - # Verify the change was successful + # Verify the version change was successful if ! grep -q "var version = \"${VERSION_IN_CODE}\"" "$VERSION_FILE"; then echo "::error::Failed to update version to ${VERSION_IN_CODE} in $VERSION_FILE" exit 1 fi - # Display the change + # Add new version to the top of the Supported() list + # Find the line with "return []SemVer{" and add the new version on the next line + sed -i "/return \[\]SemVer{/a\\ + \\t\\t{major: ${MAJOR}, minor: ${MINOR}}," "$VERSION_FILE" + + # Verify the supported version was added + if ! grep -q "{major: ${MAJOR}, minor: ${MINOR}}" "$VERSION_FILE"; then + echo "::error::Failed to add version to Supported() in $VERSION_FILE" + exit 1 + fi + + # Display the changes echo "::notice::Updated $VERSION_FILE:" grep "var version" "$VERSION_FILE" + echo "::notice::Added to Supported():" + grep -A 2 "return \[\]SemVer{" "$VERSION_FILE" echo "WORK_BRANCH=${WORK_BRANCH}" >> $GITHUB_OUTPUT echo "::notice::Prepared changes for: ${WORK_BRANCH}"