mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-18 10:28:17 +01:00
Update onpush_builder.yaml
This commit is contained in:
7
.github/workflows/onpush_builder.yaml
vendored
7
.github/workflows/onpush_builder.yaml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user