diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index b38a378..250e47f 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -25,7 +25,7 @@ jobs: sed -i "s@^%global synology_version .*@%global synology_version $VERSION@" synology-drive{,-noextra}.spec sed -i "s@^%global synology_release .*@%global synology_release $RELEASE@" synology-drive{,-noextra}.spec - if [ -z "$(git status -s)" ]; then + if [ ! -z "$(git status -s)" ]; then sed -i "/%changelog/a * $(date '+%a %B %d %Y') Maxime Dirksen - $VERSION-$RELEASE\n- Version $VERSION-$RELEASE of Synology Drive Client" synology-drive{,-noextra}.spec fi