actions-gh-pages icon indicating copy to clipboard operation
actions-gh-pages copied to clipboard

remove only certain directories

Open sgratzl opened this issue 4 years ago • 3 comments

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.

sgratzl avatar May 03 '20 21:05 sgratzl

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.

peaceiris avatar May 03 '20 21:05 peaceiris

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.

peaceiris avatar May 05 '20 04:05 peaceiris

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

ofek avatar Nov 23 '21 22:11 ofek