From 0f83fa6953629a28dbd2fdd4e1bf47b921639af6 Mon Sep 17 00:00:00 2001 From: EmixamPP Date: Mon, 24 Jul 2023 10:32:16 +0200 Subject: [PATCH] chore(workflow): fix false positive update --- .github/workflows/update.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index a9fe7b2..b38a378 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -22,10 +22,10 @@ jobs: - name: Modify files run: | - sed -i "s/^%global synology_version .*/%global synology_version $VERSION/w changelog1.txt" synology-drive{,-noextra}.spec - sed -i "s/^%global synology_release .*/%global synology_release $RELEASE/w changelog2.txt" synology-drive{,-noextra}.spec + 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 [ -s changelog1.txt ] || [ -s changelog2.txt ]; 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