diff --git a/.github/workflows/update_version.sh b/.github/workflows/update_version.sh index 65b7f9d..b12be4a 100755 --- a/.github/workflows/update_version.sh +++ b/.github/workflows/update_version.sh @@ -1,2 +1,2 @@ -VERSION=$(git describe --tags --always | sed 's/^v//') -sed -i -E 's/^version = "[^"]+"/version = "'"$VERSION"'"/' Cargo.toml \ No newline at end of file +VERSION=$(git describe --tags --always | awk '{gsub(/^v/, ""); print}') +perl -pi -e "s/^version = \"[^\"]+\"/version = \"$VERSION\"/" Cargo.toml