Restrict release to stable branch
This commit is contained in:
parent
59f0bd5c32
commit
f63b679349
|
@ -1,12 +1,12 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
CURRENT_BRANCH=`git branch --show-current`
|
CURRENT_BRANCH=`git branch --show-current`
|
||||||
if [[ $CURRENT_BRANCH != "master" ]]; then
|
if [[ $CURRENT_BRANCH != "stable" ]]; then
|
||||||
echo "Not on master branch"
|
echo "Not on stable branch"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
VERSION=`ci/version-number.sh`
|
VERSION=`ci/version-number.sh`
|
||||||
DATE=`date "+%Y-%m-%d"`
|
DATE=`date "+%Y-%m-%d"`
|
||||||
CHANGELOG_GLOB="Passepartout/App/*/CHANGELOG.md"
|
CHANGELOG_GLOB="Passepartout/App/*/CHANGELOG.md"
|
||||||
sed -i '' -E "s/^.*Beta.*$/## $VERSION ($DATE)/g" $CHANGELOG_GLOB
|
sed -i '' -E "s/^.*Beta.*$/## $VERSION ($DATE)/" $CHANGELOG_GLOB
|
||||||
git commit -am "Release" && git tag -as "v$VERSION"
|
git commit -am "Release" && git tag -as "v$VERSION"
|
||||||
|
|
Loading…
Reference in New Issue