Skip to content

Commit

Permalink
chore(workflow): fix false positive update
Browse files Browse the repository at this point in the history
  • Loading branch information
EmixamPP committed Jul 24, 2023
1 parent 91a24c4 commit 0f83fa6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]> - $VERSION-$RELEASE\n- Version $VERSION-$RELEASE of Synology Drive Client" synology-drive{,-noextra}.spec
fi
Expand Down

0 comments on commit 0f83fa6

Please sign in to comment.