Skip to content

Commit

Permalink
chore(workflow): update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
EmixamPP committed Jul 23, 2023
1 parent 24dd822 commit c2f622b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/.workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c2f622b

Please sign in to comment.