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

remove only certain directories #273

Open
sgratzl opened this issue May 3, 2020 · 3 comments · May be fixed by #279
Open

remove only certain directories #273

sgratzl opened this issue May 3, 2020 · 3 comments · May be fixed by #279
Assignees
Labels
enhancement New feature or request proposal

Comments

@sgratzl
Copy link

sgratzl commented May 3, 2020

Is your feature request related to a problem? Please describe

I update only certain directories of a repository, however their filenames change. Thus, I need a way to clean only certain directories before copying the new files.

Describe the solution you'd like

a glob pattern that specifies either the files to keep or another glob pattern that specifies the files to remove.

Describe alternatives you've considered

implementing it using a shell script but the deploy key isn't that easy.

@peaceiris
Copy link
Owner

I don't fully understand the background of your issue, but this issue seems to be a duplicate of #163

implementing it using a shell script but the deploy key isn't that easy.

Shell Script? Are you still using version 2?
This Action has been migrated to a TypeScript Action (version 3). There are no plans to add any new features to version 2. Please use the v3.

@sgratzl sgratzl linked a pull request May 4, 2020 that will close this issue
@peaceiris
Copy link
Owner

peaceiris commented May 5, 2020

Thank you for creating #279. I understood your proposal by the Pull Request.

I'm going to look at this proposal in a positive way and add test cases.

In the future, we can merge keep_files and remove_path_spec into a single option. I plan to do it for the release v4.

@ofek
Copy link

ofek commented Nov 23, 2021

@peaceiris Any update on this? My use case is I need to remove everything except certain files/directories.

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

Successfully merging a pull request may close this issue.

3 participants