Can we add config options to include/exclude branches?
halvardssm opened this issue · 8 comments
First of all, I think this action is great, thank you for making it!
As title suggests, I would love if we could have an option for include/exclude branches for mirroring. E.g. I only want to backup my master branch to gitlab whenever something gets merged/pushed to master in github.
+1,For example: gh-pages
@halvardssm
Sorry for the late reply. I'll try to implement your request.
@yasaichi any updates?
yes please, at the moment this action is deleting all branches other than master
@Fuseteam
Which version do you use actions/checkout
? If you use v2, you should specify fetch-depth: 0
because it fetches only a single commit by default.
I used version 1 iirc guess i need to updat— wait actions/checkout? Hmm i need to double check, thanks for the tip
@Fuseteam
Although you may have already found out, this action needs to be used with actions/checkout
.
I think i am using it with actions/checkout