diff --git a/.github/workflows/onpush_builder.yaml b/.github/workflows/onpush_builder.yaml index d7835cf39eb..360a2c79576 100644 --- a/.github/workflows/onpush_builder.yaml +++ b/.github/workflows/onpush_builder.yaml @@ -166,12 +166,10 @@ jobs: touch CHANGELOG.md # If the version does not exist if ! grep -q "$version" CHANGELOG.md; then - # 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\- Minor bugs fixed" CHANGELOG.md + # And if there isn't modifications listed + if [[ $(sed "1p" a) != "-"** ]]; then + sed -i "1i\- Minor bugs fixed" CHANGELOG.md + fi sed -i "1i\### $version ($(date '+%d-%m-%Y'))" CHANGELOG.md #fi fi