Switch to main after gs-release

Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
Marcus Noble 2022-07-08 07:53:28 +01:00
parent 35853c10c2
commit cbe4bdc0d7
Signed by: AverageMarcus
GPG Key ID: B8F2DB8A7AEBAF78

View File

@ -107,6 +107,11 @@ if [ "${CONFIRM}" = "y" ]; then
echo "" echo ""
echo "🚀 Keep an eye on $(underline "https://github.com/${ORG_NAME}/${REPO_NAME}/pulls") for the new release PR" echo "🚀 Keep an eye on $(underline "https://github.com/${ORG_NAME}/${REPO_NAME}/pulls") for the new release PR"
echo ""
echo "Switching back to the main git branch"
git checkout $(git remote show origin 2>/dev/null|grep HEAD|sed 's/.* //') &> /dev/null
git pull &> /dev/null
else else
echo "Aborting..." echo "Aborting..."
exit 1 exit 1