Update changelog and release notes at once

This commit is contained in:
Davide De Rosa 2019-04-07 17:48:23 +02:00
parent 3cc2dd8005
commit 00aedbf470
3 changed files with 13 additions and 17 deletions

View File

@ -1,12 +0,0 @@
#!/bin/sh
VERSION=`ci/version-number.sh`
BUILD=$((`ci/build-number.sh` + 1))
DATE=`date "+%Y-%m-%d"`
TARGET="CHANGELOG.md"
sed "s/Unreleased/$VERSION Beta $BUILD ($DATE)/" $TARGET >$TARGET.tmp
mv $TARGET.tmp $TARGET
git add $TARGET
git commit -m "Set beta release"
ci/latest-changelog.sh >ci/$TARGET

13
ci/commit-changelog.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/sh
VERSION=`ci/version-number.sh`
BUILD=$((`ci/build-number.sh` + 1))
DATE=`date "+%Y-%m-%d"`
CHANGELOG="CHANGELOG.md"
RELEASE_NOTES="fastlane/metadata/en-US/release_notes.txt"
sed "s/Unreleased/$VERSION Beta $BUILD ($DATE)/" $CHANGELOG >$CHANGELOG.tmp
mv $CHANGELOG.tmp $CHANGELOG
ci/latest-changelog.sh | sed -E "s/^(.*) \[#.*$/\1/" >ci/$CHANGELOG
cp ci/$CHANGELOG $RELEASE_NOTES
git add $CHANGELOG $RELEASE_NOTES
git commit -m "Set beta release"

View File

@ -1,5 +0,0 @@
#!/bin/sh
TARGET="fastlane/metadata/en-US/release_notes.txt"
ci/latest-changelog.sh | sed -E "s/^(.*) \[#.*$/\1/" >$TARGET
git add $TARGET
git commit -m "Update release notes (en)"