Automate beta commit

This commit is contained in:
Davide De Rosa 2019-04-07 17:25:53 +02:00
parent 1a9e6d5063
commit 0af8ba215c
1 changed files with 10 additions and 0 deletions

10
ci/commit-beta-changelog.sh Executable file
View File

@ -0,0 +1,10 @@
#!/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"