Description
Describe the bug
When using the @actions/glob
library, it doesn't give any results when running on github's own windows runners.
To Reproduce
Steps to reproduce the behavior:
I created a minimal typescript action that reproduces this issue on windows runners: https://github.com/Jimver/glob-test/actions/runs/15453189713/job/43499917075
Expected behavior
Regardless of OS, I would expect glob to return the test file we just created.
Notes
Strangely, the globber does actually work in unit tests I wrote, see https://github.com/Jimver/glob-test/blob/main/__tests__/glob.test.ts. Though this is probably why this wasn't caught in the existing unit tests (if they run on windows). So basically the issue only manifests when running the actual action. I tried reproducing locally as well on my windows desktop but it works fine there as well.
When just using readdir
directly I see the file just fine on the windows runner (see the action log debug output), so it seems to be a combination of glob
and something about the windows runners which is going wrong.