Skip to content

Commit 4f0a6af

Browse files
committed
fix(release): Correct version extraction regex to improve accuracy
Signed-off-by: Eden Reich <[email protected]>
1 parent 4b4475e commit 4f0a6af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
fi
4848
4949
# Extract version from dry run output
50-
version=$(echo "$dry_run_output" | grep -oP "The next release version is \K[0-9]\+\.[0-9]\+\.[0-9]\+" | cut -d ' ' -f6)
50+
version=$(echo "$dry_run_output" | grep -oP "The next release version is \K[0-9]+\.[0-9]+\.[0-9]+")
5151
if [ -z "$version" ]; then
5252
echo "Error: Could not determine version"
5353
exit 1

0 commit comments

Comments
 (0)