ci: use sed instead of perl to rewrite castopod's composer version
This commit is contained in:
parent
9ef58808fc
commit
b794d3433c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue