File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 2323 with:
2424 args: "https://gitlab.com/<namespace>/<repository>"
2525 env:
26+ FORCE_PUSH: "true"
2627 GITLAB_HOSTNAME: "gitlab.com"
2728 GITLAB_USERNAME: "svboxel"
2829 GITLAB_PASSWORD: ${{ secrets.GITLAB_PASSWORD }} // Generate here: https://gitlab.com/profile/personal_access_tokens
Original file line number Diff line number Diff line change @@ -31,7 +31,12 @@ sh -c "git config --global core.askPass /cred-helper.sh"
3131sh -c " git config --global credential.helper cache"
3232sh -c " git remote add mirror $* "
3333sh -c " echo pushing to $branch branch at $( git remote get-url --push mirror) "
34+ if [" $FORCE_PUSH " = " true" ]
35+ then
36+ sh -c " git push --force mirror $branch "
37+ else
3438sh -c " git push mirror $branch "
39+ fi
3540
3641sleep $POLL_TIMEOUT
3742
You can’t perform that action at this time.
0 commit comments