-
-
Notifications
You must be signed in to change notification settings - Fork 396
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
proposal: Being able to exclude a directory from being overriden #718
Comments
I do not know the details of your demand. But the option keep_files seems worth reading. |
This wouldnt replace existing file, which I would still need. |
This would also be very useful when using pr-previews https://github.com/rossjrw/pr-preview-action Every time a new build is deployed it wipes the pr-preview directory so all active previews are killed. This issue and #771 are very similar. |
A related use-case is when static content refer to specific versions of published software. Say we have content for v1, v2 and main/latest. It would be really cool to be able to have the action publish on tag push to This requires "overwriting" latest, but not any other content. In other words, a whitelist or regex expression declaring what to delete ( |
I switched to JamesIves/github-pages-deploy-action@v4. It has the following options
which works perfectly for my use case. |
I just realized that |
Looking at actions-gh-pages/src/git-utils.ts Line 114 in ababa3d
keep_files: false is essentially just running git rm -r --ignore-unmatch * in the destination directory.
Since |
Checklist
Describe your proposal
If you specify the name of the directory, when executing the GHA, keep that directory intact.
Describe the solution you'd like
I would like to be able to keep contents of a directory even after pushing files to the root.
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: