-
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.
- Loading branch information
Showing
1 changed file
with
6 additions
and
2 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,8 +22,12 @@ jobs: | |
- name: Modify files | ||
run: | | ||
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 | ||
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 | ||
if [ -s changelog1.txt ] || [ -s changelog2.txt ]; 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 | ||
- name: Create PR | ||
uses: peter-evans/create-pull-request@v5 | ||
|