-
Trying to move CI from AppVeyor to Actions, which used PowerShell files for build and test. Reviewed https://help.github.com/en/articles/workflow-syntax-for-github-actions#jobsjob_idstepsrunshell, which I found without examples. So, stupid question - how to run a ps1 file in an Actions step? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I was also trying to figure out how to use the shell option to run a powershell script. The doc shows the following definition:
So I tried to make a sub-property of run (which I don’t think is valid yml, but the editor doesn’t do any validation so it’s hard to tell):
Which errored with:
I gave up and just used powershell from the cmd command instead of trying to change the shell:
Hopefully some examples can be added to that page to show how to actually use the shell parameter |
Beta Was this translation helpful? Give feedback.
-
Try:
Its working for me - https://github.com/damccorm/actions-playground/pull/9 - I think this is just a docs issue cc @rachmari |
Beta Was this translation helpful? Give feedback.
-
Hey there, thanks for pointing this out. It was indeed a documentation bug. We’ve fixed the documentation and added examples for using different shells! Let me know if there is still some clarification we can make in the documentation. You’ll find the updated documentation here: |
Beta Was this translation helpful? Give feedback.
Hey there, thanks for pointing this out. It was indeed a documentation bug. We’ve fixed the documentation and added examples for using different shells! Let me know if there is still some clarification we can make in the documentation.
You’ll find the updated documentation here:
https://help.github.com/en/articles/workflow-syntax-for-github-actions#jobsjob_idstepsrun