Skip to content

actions/checkout@v2 deletes all the files within the repo directory before fetching from remote #430

Closed
@vicke4

Description

@vicke4

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions