File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -24,10 +24,20 @@ echo "UPSTREAM_REPO=$UPSTREAM_REPO"
2424echo " BRANCHES=$BRANCH_MAPPING "
2525
2626git config --unset-all http." https://github.com/" .extraheader || :
27+
28+ echo " Resetting origin to: https://$GITHUB_ACTOR :$GITHUB_TOKEN @github.com/$GITHUB_REPOSITORY "
2729git remote set-url origin " https://$GITHUB_ACTOR :$GITHUB_TOKEN @github.com/$GITHUB_REPOSITORY "
30+
31+ echo " Adding tmp_upstream $UPSTREAM_REPO "
2832git remote add tmp_upstream " $UPSTREAM_REPO "
33+
34+ echo " Fetching tmp_upstream"
2935git fetch tmp_upstream
3036git remote --verbose
37+
38+ echo " Pushing changings from tmp_upstream to origin"
3139git push origin " refs/remotes/tmp_upstream/${BRANCH_MAPPING%%:* } :refs/heads/${BRANCH_MAPPING#*: } " --force
40+
41+ echo " Removing tmp_upstream"
3242git remote rm tmp_upstream
3343git remote --verbose
You can’t perform that action at this time.
0 commit comments