GitHub Actions Certificate Exam GitHub-Actions Question # 10 Topic 2 Discussion

GitHub Actions Certificate Exam GitHub-Actions Question # 10 Topic 2 Discussion

GitHub-Actions Exam Topic 2 Question 10 Discussion:
Question #: 10
Topic #: 2

A development team has been using a Powershell script to compile and package their solution using existing tools on a Linux VM, which has been configured as a self-hosted runner. They would like to use the script as-is in an automated workflow. Which of the following should they do to invoke their script within a workflow step?


A.

Configure a self-hosted runner on Windows with the requested tools.


B.

Use the YAML powershell: step.


C.

Run the pwsh2bash command to convert the script so it can be run on Linux.


D.

Use the YAML shell: pwsh in a run step.


E.

Use the actions/run-powershell action to invoke the script.


Get Premium GitHub-Actions Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.