-
Notifications
You must be signed in to change notification settings - Fork 299
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
[request] ability to push file but keep some files from deleting in the same folder #58
Comments
Thanks, I will consider it, it's definitely a good idea. I'm trying to not add more features until I've written tests (#59) for the action. Otherwise it gets harder to test and too easy to make mistakes. |
Possible related: #30 |
@cpina I'm curious if |
@SooluThomas : I've had a look and it works as I had expected, but let me know if you expect something else, see something else or if the documentation is not clear. If there is no The Currently there is no way to ignore files to not wipe them out. I plan to spend some time in Feburary (fingers crossed!) writing tests and then I might add more options. I don't promise which ones though. PR welcomed of course. I plan to really avoid new options until I've written tests to avoid regressions for existing users :-) (and stress on my side testing and fixing combinations of options). |
I see that my question was already answered 😄
Looking forward to the feature! |
👍 looking forward to implement it! :-) (don't expect it for quite a few weeks minimum). At the moment a possible way is that you need to copy the files into the "source-directory" in the github action so they are copied across. For example with a command before the github-action-push-to-another-repository |
Note to myself for when I implement this: to allow to keep all the files of the destination directory (perhaps in a different flag) |
Dear cpina, thanks for the great script. I'm having the exact same problem now with my workflow files in the output repository. Did you consider to still add this? Kind regards, Daniel |
Hi @dlankheet-fm - Yes, I want to implement it but I would like to write/prepare tests beforehand (last time that some features were added it broke something else and it's hard now to test everything properly). Sadly I haven't had time to do this as I thought. If you would like to have this soon I think that for now taking care of the other files either in a different step as I mentioned (sorry, I don't have a final solution handy) or forking this action and fixing it for your usecase will be the faster way. Time is limited and need to work on other things and really want to avoid breaking other user's flow. |
At neume-network we're also using this action and sparing some files from being deleted would help us: |
I will close this issue because, hopefully, that can be done outside GitHub Action with a similar pattern as described in the 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 It might need copying files from the destination repository before hand. Is it a possibility for you? I'm trying to avoid adding code if it could be done outside the action and also before writing automated tests (#59) to avoid regressions. If not possible please re-open the issue and I will try to think if it could be done outside GitHub Action. Another option is to fork and change the script for your case (I know, not ideal). |
The current workflow will automatically wipe all contents if no
target-directory
is mentioned. I'd like to request for a feature which allows some files to stay.Something like
ignore-files: "./README.md"
Thank you
The text was updated successfully, but these errors were encountered: