Skip to content

Commit

Permalink
Magician should use different remote on non-GCP pushes
Browse files Browse the repository at this point in the history
  • Loading branch information
rambleraptor committed Jul 18, 2018
1 parent ba31600 commit 69b5bc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .ci/magic-modules/merge-pr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ echo "Merged PR #$ID." > ./commit_message

set +e
if [ "$REPO" != "GoogleCloudPlatform/magic-modules" ]; then
git remote add push-target "git@github.com:$REPO"
git remote add non-gcp-push-target "git@github.com:$REPO"
# We know we have a commit, so all the machinery of the git resources is
# unnecessary. We can just try to push directly, without forcing.
ssh-agent bash -c "ssh-add ~/github_private_key; git push push-target $BRANCH"
ssh-agent bash -c "ssh-add ~/github_private_key; git push non-gcp-push-target $BRANCH"
fi
set -e

0 comments on commit 69b5bc3

Please sign in to comment.