Skip to content

Commit 0aa1eb3

Browse files
authored
Fully normalize versions for use in compile changelog (#60249)
Normalize version for use with compile changelog
1 parent e25d125 commit 0aa1eb3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/release-compile-changelog.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,9 @@ jobs:
162162
echo "Using branch: $SELECTED_BRANCH"
163163
echo "Generating changelog for version: $VERSION"
164164
165-
# Normalize the version by removing .0 patch if present, as the changelog command does not support it
165+
# Normalize version for use with changelog command.
166+
VERSION=$(echo "$VERSION" | grep -oP '\d+\.\d+\.\d+')
167+
166168
if [[ $VERSION =~ ^[0-9]+\.[0-9]+\.0$ ]]; then
167169
VERSION=${VERSION%.0}
168170
fi

0 commit comments

Comments
 (0)