ci: use sed instead of perl to rewrite castopod's composer version

This commit is contained in:
Yassine Doghri 2023-02-22 17:58:46 +00:00
parent 9ef58808fc
commit b794d3433c
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
set -e
VERSION=$1
COMPOSER_VERSION=$(echo "$VERSION" | perl -pe 's/(?<=[alpha|beta])\.//g')
COMPOSER_VERSION=$(echo "$VERSION" | sed -r 's/(alpha|beta)./\1/g')
# replace composer.json version using jq
echo "$( jq '.version = "'$COMPOSER_VERSION'"' composer.json )" > composer.json