how to call PowerShell script with a GithubActions workflow?

Question:

I’m calling .\build.ps1 and it seems to hang:

https://github.com/nblockchain/ZXing.Net.Xamarin/runs/232358091

Do I need something special? In AzureDevOps this was working out of the box.

Answer:

As agreed in the comments, the solution for this issue was to specify the shell to be run in your Action file. In your case you had to change from:

to:

For more details about available values for shell param, refer to documentation.

Source:

how to call PowerShell script with a GithubActions workflow? by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply