File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,10 @@ parameters:
2525 default : Auto Update
2626 description : Commit message
2727 type : string
28+ push-force :
29+ default : false
30+ description : Force the push
31+ type : boolean
2832 paths :
2933 description : |
3034 Output files or directories. If it is more than one then separate it with commas.
@@ -93,5 +97,10 @@ steps:
9397 fi
9498
9599 git diff-index --quiet HEAD || git commit -m "<<parameters.commit-message>> [skip ci]"
100+
96101 # Push quietly to prevent showing the token in log
97- git push -f -q https://$<<parameters.token>>@github.com/$<<parameters.user>>/$<<parameters.project>>.git <<parameters.branch>>
102+ if [[ "<<parameters.push-force>>" = true ]]; then
103+ git push -f -q https://$<<parameters.token>>@github.com/$<<parameters.user>>/$<<parameters.project>>.git <<parameters.branch>>
104+ else
105+ git push -q https://$<<parameters.token>>@github.com/$<<parameters.user>>/$<<parameters.project>>.git <<parameters.branch>>
106+ fi
You can’t perform that action at this time.
0 commit comments