Skip to content

Unable to checkout repository ending in a dot on Windows #780

@eXpl0it3r

Description

@eXpl0it3r

Steps to Reproduce

  • Create a repository that ends in a dot (e.g. G.A.B.R.)
  • Write a GitHub Actions workflow that uses actions/checkout and a Windows platform
  • Run the workflow

Actual Behavior

All Windows builds fail with the error along the lines of: Directory 'D:\a\G.A.B.R.\G.A.B.R.' does not exist
That's because Windows doesn't allow directories that end with a ., thus the directory is never created.

Expected Behavior

A valid working directory is picked on Windows platforms.
Maybe, if desired, a warning message is printed, indicating of the directory name mismatch, due to Windows.

Example

I created an example repository for this: G.A.B.R.
And ran GitHub Actions on two different branches:

If anyone knows a workaround, let me know. 🙂

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