Created
August 10, 2017 11:19
-
-
Save ulrikstrid/504154ab2195e1ccdc72811636252b9a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Setting username and email" | |
git config --global user.email "$USER_EMAIL" | |
git config --global user.name "$USER_NAME" | |
echo "Checking out the $1 branch" | |
git checkout -b "$1" | |
echo "Merging with master" | |
git merge master | |
echo "Add the build catalog" | |
git add -f --all build/ | |
echo "Commit it" | |
git commit --author="$USER_NAME <$USER_EMAIL>" -m "$CIRCLE_BRANCH build#$CIRCLE_BUILD_NUM" | |
echo "Push to origin" | |
git push --force --set-upstream origin $1 | |
echo "Done." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment