-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
actions/checkout@v2 deletes all the files within the repo directory before fetching from remote #430
Comments
Try setting the input |
Thanks, @ericsciple. It works! However, if you already have a workflow that uses Maybe we can update this in the README to avoid the confusion for others. |
In my case the problem is still there. Each run ends up with cleared directory. edit:
|
- The below link suggests that the '.next' is being cleaned out which contains build files, it's suggested that clean: 'false' should prevent that. > actions/checkout#430 (comment)
Hi,
I have a GitHub self-hosted runner set up to deploy a Next.js app that checkouts the repository, builds and restarts pm2.
The thing is whenever the actions/checkout@v2 step kicks in, it deletes all the files within the repository including the folder
.next
that contains all the build files. This leads to the downtime of the application whenever the workflow runs.Is there any way I can opt-out of the deletion of the build files? If there's no way as of now, can I submit a pull request with a YAML config for that?
Link to my StackOverflow question regarding this issue.
The text was updated successfully, but these errors were encountered: