Skip to content

Commit

Permalink
Merge pull request #268 from alphagov/force-push-latest-release
Browse files Browse the repository at this point in the history
Force push the latest-release branch to GitHub
  • Loading branch information
gemmaleigh authored Oct 11, 2016
2 parents c9ef64e + a9c2641 commit c37455c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions update-release-branch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ if [ "$TRAVIS_REPO_SLUG" == "alphagov/govuk_prototype_kit" ] && [ "$TRAVIS_PULL_
git remote add deploy-latest-release https://"${GH_TOKEN}"@github.com/alphagov/govuk_prototype_kit.git > /dev/null 2>&1
set -x
# check the remote has been added
git remote -v
git checkout -b latest-release v"$VERSION_TAG"
git push --force-with-lease deploy-latest-release latest-release
git push --f deploy-latest-release latest-release
echo "Pushed latest-release branch to GitHub"
else
echo "Not updating the latest-release branch as we're on a branch..."
Expand Down

0 comments on commit c37455c

Please sign in to comment.