Skip to content

Commit c8419c5

Browse files
author
Vimala
committed
fix(ci): replace sed with bash parameter expansion in release.yml
1 parent c40d1d8 commit c8419c5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
run: |
7777
VERSION="${{ steps.version.outputs.version }}"
7878
# Escape dots for awk regex (1.2.3 -> 1\.2\.3)
79-
SAFE_VERSION=$(echo "$VERSION" | sed 's/\./\\./g')
79+
SAFE_VERSION="${VERSION//./\\.}"
8080
NOTES=""
8181
if [ -f CHANGELOG.md ]; then
8282
# Match "## X.Y.Z" optionally followed by space+anything (date, dash, etc.) or end of line

0 commit comments

Comments
 (0)