passepartout-apple/scripts/push-stable.sh
Davide De Rosa db075eb291 [ci skip] Split unit testing and beta workflows
- master: test
- stable: beta
2021-11-29 19:07:00 +01:00

12 lines
281 B
Bash
Executable File

#!/bin/sh
CURRENT_BRANCH=`git branch --show-current`
if [[ $CURRENT_BRANCH != "master" ]]; then
echo "Not on master branch"
exit
fi
if !(git checkout stable && git merge master && git push github); then
echo "Error while pushing stable"
exit
fi
git checkout master