github-action-push-to-another-repository icon indicating copy to clipboard operation
github-action-push-to-another-repository copied to clipboard

Updated the entrypoint

Open chougule007 opened this issue 4 years ago • 3 comments

Added -f flag. if the tip of your current branch is behind then it will be helpful

chougule007 avatar Oct 04 '21 10:10 chougule007

Mmmm... I'm just thinking (I haven't had time to do anything with this github-action for a while): if it's behind and it can fast-forward I think that it works without the -f. "man git-push" says:

can cause the remote repository to lose commits; use it with care.

Now the github-action can push into a directory (and leave the repository untouched) I think that this might cause problems. This is a new option after you did the PR.

Have you found some flow where you needed the -f?

cpina avatar Oct 25 '21 22:10 cpina

I only now noticed this PR. I needed a force push for my workflow and created a PR where force pushing is optional (and not default). @cpina If you are maintaining this repo, then I believe my PR supersedes this one

MischaPanch avatar Dec 13 '21 01:12 MischaPanch

I still need to look into this. Before merging code and adding features / changes I want to write tests to avoid regressions, that's why I haven't actioned it yet.

cpina avatar Jan 22 '22 21:01 cpina