diff --git a/.github/workflows/onpush_builder.yaml b/.github/workflows/onpush_builder.yaml index caa9b5b57..bb476d60a 100644 --- a/.github/workflows/onpush_builder.yaml +++ b/.github/workflows/onpush_builder.yaml @@ -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