This is either an upstream bug in the runner, or there's something missing, as it does work using a local installation of Powershell (for Mac) just fine.
Not having Windows CI is rather unfortunate, as it has already helped catch some bugs which affected Linux/MacOS, just more subtly.
GitHub Actions does not work properly on Windows, and seems to be refusing to do command substitution (both with
bash
and the defaultpwsh
):With the following exploded out script for debugging purposes:
We get:
This is either an upstream bug in the runner, or there's something missing, as it does work using a local installation of Powershell (for Mac) just fine.
Not having Windows CI is rather unfortunate, as it has already helped catch some bugs which affected Linux/MacOS, just more subtly.