msys2 / setup-msys2

GitHub Action to setup MSYS2
https://github.com/marketplace/actions/setup-msys2
MIT License
282 stars 37 forks source link

"powershell.exe" renamed to "pwsh.exe" #300

Closed stefantalpalaru closed 1 year ago

stefantalpalaru commented 1 year ago

The windows-2019 image no longer has "powershell.exe": https://github.com/actions/runner-images/issues/7516

lazka commented 1 year ago

Looking at your job logs it looks like you replace the PATH env var, maybe that's the cause?

We could try to get rid of powershell all together though, as there is no reason we couldn't do the same task with plain javascript.

stefantalpalaru commented 1 year ago

you replace the PATH env var

You're right! Fixed by appending new paths to $GITHUB_PATH instead of trying to use $GITHUB_ENV.

Thank you!