Update onpush_builder.yaml

This commit is contained in:
Alexandre
2024-01-08 23:14:10 +01:00
committed by GitHub
parent 4c698695a8
commit 1323aa2932

View File

@@ -171,8 +171,9 @@ jobs:
touch CHANGELOG.md
# If the version does not exist
if ! grep -q "$version" CHANGELOG.md; then
# And if there isn't modifications listed
if [[ $(sed "1p" a) != "-"** ]]; then
first_line="$(sed -n '/./p' CHANGELOG.md | head -n 1)"
# If the first line does not start with -
if [[ "$first_line" != "-"* ]]; then
sed -i "1i\- Minor bugs fixed" CHANGELOG.md
fi
sed -i "1i\### $version ($(date '+%d-%m-%Y'))" CHANGELOG.md