Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
halvardssm opened this issue Apr 29, 2020 · 8 comments
Open

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

halvardssm opened this issue Apr 29, 2020 · 8 comments
Labels
enhancement New feature or request

Comments

@halvardssm
Copy link

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
Copy link

cipchk commented Jul 4, 2020

+1,For example: gh-pages

@yasaichi
Copy link
Contributor

yasaichi commented Sep 5, 2020

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

@yasaichi yasaichi added the enhancement New feature or request label Sep 5, 2020
@HasanHaghniya
Copy link

@yasaichi any updates?

@Fuseteam
Copy link

Fuseteam commented Jul 2, 2021

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

@yasaichi
Copy link
Contributor

yasaichi commented Oct 9, 2021

@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
Copy link

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

@yasaichi
Copy link
Contributor

yasaichi commented Oct 13, 2021

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

@Fuseteam
Copy link

I think i am using it with actions/checkout

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants