Description
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
- Create a workflow that uses
actions/checkout@v4.1.7
. - Ensure the repository has one or more folders that only contain a
.gitkeep
file. - Add a step for creating an artifact
- 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
.