pixta-dev / repository-mirroring-action

A GitHub Action for mirroring a repository to another repository
https://github.com/marketplace/actions/mirroring-repository
MIT License
240 stars 82 forks source link

Can we add config options to include/exclude branches? #2

Open halvardssm opened 4 years ago

halvardssm commented 4 years ago

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.

cipchk commented 4 years ago

+1,For example: gh-pages

yasaichi commented 4 years ago

@halvardssm Sorry for the late reply. I'll try to implement your request.

HasanHaghniya commented 3 years ago

@yasaichi any updates?

Fuseteam commented 3 years ago

yes please, at the moment this action is deleting all branches other than master

yasaichi commented 2 years ago

@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.

Fuseteam commented 2 years ago

I used version 1 iirc guess i need to updat— wait actions/checkout? Hmm i need to double check, thanks for the tip

yasaichi commented 2 years ago

@Fuseteam Although you may have already found out, this action needs to be used with actions/checkout.

Fuseteam commented 2 years ago

I think i am using it with actions/checkout