stefanzweifel / git-auto-commit-action

Automatically commit and push changed files back to GitHub with this GitHub Action for the 80% use case.
MIT License
1.99k stars 227 forks source link

Add "push_options" Input for easier configuration for git-push #72

Closed stefanzweifel closed 4 years ago

stefanzweifel commented 4 years ago

Is your feature request related to a problem? Please describe. Users with protected branches can't easily do a force push to their repo. https://github.com/stefanzweifel/git-auto-commit-action/issues/71#issuecomment-623680574

Describe the solution you'd like Instead of just adding a force-option, it would make sense to add a push_options-input. User could then write their own logic which will then be passed to the git push command.

Describe alternatives you've considered None

Additional context In the README, we would have to make clear, that using git push --force can be dangerous.