mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-17 09:58:16 +01:00
Update onpush_builder.yaml
This commit is contained in:
12
.github/workflows/onpush_builder.yaml
vendored
12
.github/workflows/onpush_builder.yaml
vendored
@@ -99,10 +99,16 @@ jobs:
|
||||
if [[ "$version" == *"test"* ]]; then exit 0; fi
|
||||
# Create changelog
|
||||
touch CHANGELOG.md
|
||||
# Check version or create it
|
||||
# If the version does not exist
|
||||
if ! grep -q "$version" CHANGELOG.md; then
|
||||
sed -i "1i\- Bug updates" CHANGELOG.md
|
||||
sed -i "1i\### Minor : $version ($(date '+%d-%m-%Y'))" CHANGELOG.md
|
||||
# And if latest wasn't a minor version
|
||||
if [ ! "$(sed -n '/^###/p;q' CHANGELOG.md)" ]; then
|
||||
sed -i "1d" CHANGELOG.md
|
||||
sed -i "1i\### $version ($(date '+%d-%m-%Y'))" CHANGELOG.md
|
||||
else
|
||||
sed -i "1i\- Bug updates" CHANGELOG.md
|
||||
sed -i "1i\### $version ($(date '+%d-%m-%Y'))" CHANGELOG.md
|
||||
fi
|
||||
fi
|
||||
env:
|
||||
path: "./${{ matrix.addon }}"
|
||||
|
||||
Reference in New Issue
Block a user