mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-01 13:24:04 +02: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"
|
cd "$path"
|
||||||
# Get version
|
# Get version
|
||||||
if [ -f config.yaml ]; then
|
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
|
elif [ -f config.json ]; then
|
||||||
version=$(sed -e '/version/!d' -e 's/.*[^"]*"\([^"]*\)",/\1/' config.json)
|
version="$(sed -e '/version/!d' -e 's/.*[^"]*"\([^"]*\)",/\1/' config.json)"
|
||||||
else; exit 1
|
else
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
# Exit if test
|
# Exit if test
|
||||||
if [[ "$version" == *"test"* ]]; then exit 0; fi
|
if [[ "$version" == *"test"* ]]; then exit 0; fi
|
||||||
|
|||||||
Reference in New Issue
Block a user