-
-
Notifications
You must be signed in to change notification settings - Fork 374
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: option to not follow symlinks when copying assets #643
Comments
About the failure
I am very happy to check and follow this before opening an issue. Could you use the latest version (v3.8.0)? You are using the beta release v3.7.0-8. It gives the failure. About the suggestion
Currently, the |
My mistake, I will update my CI process. I gained the impression from reading the |
A follow-up on this: it looks like updating to a newer |
This feature sounds great 🎉 |
Also looking forward to this! I was using https://github.com/crazy-max/ghaction-github-pages/tree/v2 and didn't think much about how it handled symlinks. I just tried upgrading to this action instead because it handles So, also very much looking forward to this! And thanks for making such a tidy and well-supported Action :) |
Checklist
Describe your proposal
At the moment the
copyAssets
step follows all symlinks to fetch their content:actions-gh-pages/src/git-utils.ts
Line 60 in 2decf4e
(The
-L
switch enables this behaviour.)I would actually like to deploy a symlink to my
gh-pages
environment rather than copy the contents.Describe the solution you'd like
Could we add a
followSymlinks
option, which defaults totrue
to keep existing behavior.If set to
false
,copyAssets
uses-P
switch instead of-L
.I want to use
followSymlinks: false
pluskeepFiles: true
to create a CI job which updates a symlink and does nothing else.Describe alternatives you've considered
Additional context
In fact, I am actually attempting to create the symlink in a CI job, and it's creating an interesting failure:
https://github.com/PyO3/pyo3/runs/3278446262?check_suite_focus=true
The relevant log is:
Looks like the
copyAssets
step fails because this symlink is dangling in the local checkout. This then causes the action to try to initialize a newgh-pages
branch, which is incorrect and causes a crash.So there's maybe also a separate bug here about failure in the
copyAssets
step causing the action to incorrectly switch to first-deployment mode.The text was updated successfully, but these errors were encountered: