mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-03 23:54:55 +02:00
Update onpush_builder.yaml
This commit is contained in:
4
.github/workflows/onpush_builder.yaml
vendored
4
.github/workflows/onpush_builder.yaml
vendored
@@ -92,13 +92,13 @@ jobs:
|
|||||||
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
|
else; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
# Create changelog
|
# Create changelog
|
||||||
touch CHANGELOG.md
|
touch CHANGELOG.md
|
||||||
# Check version or create it
|
# Check version or create it
|
||||||
if ! grep -q "$version" CHANGELOG.md, then
|
if ! grep -q "$version" CHANGELOG.md; then
|
||||||
sed -i "1i - Minor bug updates" CHANGELOG.md
|
sed -i "1i - Minor bug updates" CHANGELOG.md
|
||||||
sed -i "1i ## $version (${DATE})" CHANGELOG.md
|
sed -i "1i ## $version (${DATE})" CHANGELOG.md
|
||||||
sed -i "1i " CHANGELOG.md
|
sed -i "1i " CHANGELOG.md
|
||||||
|
|||||||
Reference in New Issue
Block a user