-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(workflow): fix false positive update
- Loading branch information
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|