Skip to content

Fails to checkout folders with .gitkeep files #1891

Open
@delucaezequiel

Description

@delucaezequiel

Description

When using actions/checkout@v4.1.7 in our workflows, we've found an issue where folders that contain only a .gitkeep file are not being checked out as. This behavior disrupts our workflows, as these folders are required for our project's structure and subsequent steps in our CI/CD automations.

Steps to Reproduce

  1. Create a workflow that uses actions/checkout@v4.1.7.
  2. Ensure the repository has one or more folders that only contain a .gitkeep file.
  3. Add a step for creating an artifact
  4. Trigger the workflow.

Expected behavior: All folders, including those with only a .gitkeep file, are checked out to the runner's filesystem. Should be able to see them if you download the artifact.

Actual behavior: Folders containing only a .gitkeep file are not checked out. If you download the artifact, folders are not present.

Additional Information

  • Also tried with option fetch-depth: 0 without success
  • Our workflow requires these folders for proper build and deployment processes.

We would greatly appreciate any insights or fixes for this issue to ensure our workflows can run smoothly with the latest version of actions/checkout.

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