Skip to content

Commit

Permalink
entrypoint.bash: Try setting the remore url again
Browse files Browse the repository at this point in the history
  • Loading branch information
DeeDeeG committed Jul 7, 2020
1 parent 68e88d9 commit 58c491c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion entrypoint.bash
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,12 @@ git init

git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"

git remote add origin "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"

git remote update
git remote -v
git remote update

git rebase --autosquash --autostash "${BASE_REF}" "${HEAD_BRANCH}"
git push --force origin "${HEAD_BRANCH}"

0 comments on commit 58c491c

Please sign in to comment.