Update onpush_builder.yaml

This commit is contained in:
Alexandre
2023-03-11 13:21:20 +01:00
committed by GitHub
parent d81f6c7cae
commit fae5523e73

View File

@@ -89,10 +89,11 @@ jobs:
cd "$path"
# Get version
if [ -f config.yaml ]; then
version=$(sed -e '/version/!d' -e 's/.*version: //' config.yaml)
version="$(sed -e '/version/!d' -e 's/.*version: //' config.yaml)"
elif [ -f config.json ]; then
version=$(sed -e '/version/!d' -e 's/.*[^"]*"\([^"]*\)",/\1/' config.json)
else; exit 1
version="$(sed -e '/version/!d' -e 's/.*[^"]*"\([^"]*\)",/\1/' config.json)"
else
exit 1
fi
# Exit if test
if [[ "$version" == *"test"* ]]; then exit 0; fi