Skip to content
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

Fails to checkout folders with .gitkeep files #1891

Open
delucaezequiel opened this issue Sep 12, 2024 · 1 comment
Open

Fails to checkout folders with .gitkeep files #1891

delucaezequiel opened this issue Sep 12, 2024 · 1 comment

Comments

@delucaezequiel
Copy link

delucaezequiel commented Sep 12, 2024

Description

When using actions/[email protected] 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/[email protected].
  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.

@joschi
Copy link

joschi commented Sep 13, 2024

@delucaezequiel Ensure that you really committed these .gitkeep files.

FWIW, I am working with multiple repositories with directories which only contain a .gitkeep file and actions/checkout is working without an issue on them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants