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

Add an argument for folders / files to ignore

Open KaviiSuri opened this issue 3 years ago • 4 comments

A functionality to ignore some folders and files might be really useful. I recently tried using this action to copy the whole repo to another repo in order to host it.

.git folder was also copied in the copy step resulting in the action trying to push back to source repo and fails.

KaviiSuri avatar Jun 14 '21 10:06 KaviiSuri

Thanks - this make sense.

Meanwhile some other users mentioned another solution: https://github.com/cpina/github-action-push-to-another-repository/issues/33

Edit: I would also like to avoid changes / new features until I've managed to add some tests (#59) which is high in my priority for when I get time.

cpina avatar Dec 08 '21 23:12 cpina

This would be a really useful addition- especially as currently using ./ as the source folder means that your git hooks are also included, which could create problems

harrietrs avatar Jun 10 '22 16:06 harrietrs

Hi! Is there any way in which we could help with this? @cpina

vencho-mdp avatar Jul 09 '22 14:07 vencho-mdp

@vencho-mdp : I would still like to prepare some tests to make sure that new options don't break existing options. Testing the combinations is hard. Perhaps some approaches could be discussed in https://github.com/cpina/github-action-push-to-another-repository/issues/59 ?

cpina avatar Jul 09 '22 17:07 cpina

See (new) FAQ: https://cpina.github.io/push-to-another-repository-docs/faq.html#how-can-i-copy-only-some-files-only-some-directories-exclude-some-files-etc

Next days I plan to improve the FAQ but it links to an example of filtering that hopefully helps you.

cpina avatar Sep 05 '22 22:09 cpina