Loading .gitlab-ci.yml +1 −1 Original line number Diff line number Diff line Loading @@ -14,7 +14,7 @@ default: echo "Deriving package version from appinfo/info.xml ..." RAW_VERSION=$(xmllint --xpath 'string(/info/version)' appinfo/info.xml 2>/dev/null || true) if [ -z "${RAW_VERSION:-}" ]; then RAW_VERSION=$(grep -oP '<version>\K[^<]+' appinfo/info.xml | head -n1 || true) RAW_VERSION=$(php -r '$x=@simplexml_load_file("appinfo/info.xml"); if(!$x||empty($x->version)){exit(1);} echo $x->version, PHP_EOL;' 2>/dev/null || true) fi if [ -z "${RAW_VERSION:-}" ]; then echo "Could not extract version from appinfo/info.xml" >&2 Loading Loading
.gitlab-ci.yml +1 −1 Original line number Diff line number Diff line Loading @@ -14,7 +14,7 @@ default: echo "Deriving package version from appinfo/info.xml ..." RAW_VERSION=$(xmllint --xpath 'string(/info/version)' appinfo/info.xml 2>/dev/null || true) if [ -z "${RAW_VERSION:-}" ]; then RAW_VERSION=$(grep -oP '<version>\K[^<]+' appinfo/info.xml | head -n1 || true) RAW_VERSION=$(php -r '$x=@simplexml_load_file("appinfo/info.xml"); if(!$x||empty($x->version)){exit(1);} echo $x->version, PHP_EOL;' 2>/dev/null || true) fi if [ -z "${RAW_VERSION:-}" ]; then echo "Could not extract version from appinfo/info.xml" >&2 Loading