Infer beta changelog for TestFlight

Pick changes from latest release.
This commit is contained in:
Davide De Rosa 2019-04-07 17:38:50 +02:00
parent 0af8ba215c
commit fd7a75af5c
2 changed files with 8 additions and 0 deletions

View File

@ -8,3 +8,5 @@ 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

6
ci/latest-changelog.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/sh
TARGET="CHANGELOG.md"
RELEASES=(`grep -n "^## " $TARGET | sed -E "s/^([0-9]+).*$/\1/g"`)
UNRELEASED=${RELEASES[0]}
LATEST=${RELEASES[1]}
cat $TARGET | head -n $((LATEST - 1)) | tail -n $((LATEST - UNRELEASED - 2))