Include development version update and changelog prep

This commit is contained in:
Chris Roberts 2019-06-27 16:49:06 -07:00
parent c72789e9b4
commit 4f82989b7e
1 changed files with 8 additions and 0 deletions

View File

@ -187,6 +187,14 @@ jobs:
slack -s error -m "Failed to stage CHANGELOG update for release trigger"
exit 1
fi
echo -e "## Next version (Unreleased)\n\nFEATURES:\n\nIMPROVEMENTS:\n\nBUG FIXES:\n" | cat - CHANGELOG.md > .t && mv .t CHANGELOG.md
if [ $? -ne 0 ]; then
slack -s error -m "Failed to write update to CHANGELOG for development"
exit 1
fi
dev_version=$(ruby -e "puts Gem::Version.new(Gem::Version.new(${version}).segments.tap{|x|x[2]=x[2].succ}.join('.'))")
echo "${dev_version}.dev" > version.txt
git commit CHANGELOG.md version.txt -m "Update version and CHANGELOG for development v${dev_version}.dev"
git push upstream master "v${version}"
if [ $? -ne 0 ]; then
slack -s error -m "Failed to push updates to GitHub for release trigger"