Unable to checkout repository ending in a dot on Windows

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. :slightly_smiling_face:

Related issue on GitHub: #780

not very sure of this one, but you might want to check this out

https://docs.github.com/en/get-started/using-git/dealing-with-special-characters-in-branch-and-tag-names

URL special characters are quite tricky

I’m pretty sure this has nothing to do w/ checkout.

I believe it should still fail if your workflow was:

name: CI

on: [push]

jobs:
  build:
    name: ${{ matrix.platform.name }}
    runs-on: ${{ matrix.platform.os }}

    strategy:
      fail-fast: false
      matrix:
        platform:
          - { name: Windows VS2019, os: windows-2019 }

    steps:
      - name: Hello
        run: echo "hi"
        shell: bash

If I’m right, if I were you, I’d file a bug here: