mirror of
https://github.com/actions/runner-images.git
synced 2026-01-08 03:07:32 +08:00
install powershell modules
This commit is contained in:
@@ -298,10 +298,20 @@
|
||||
],
|
||||
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
|
||||
},
|
||||
{
|
||||
"type": "shell",
|
||||
"scripts":[
|
||||
"{{template_dir}}/scripts/installers/Install-PowerShellModules.ps1"
|
||||
],
|
||||
"environment_vars": [
|
||||
"INSTALLER_SCRIPT_FOLDER={{user `installer_script_folder`}}"
|
||||
],
|
||||
"execute_command": "sudo sh -c '{{ .Vars }} pwsh -f {{ .Path }}'"
|
||||
},
|
||||
{
|
||||
"type": "shell",
|
||||
"inline": [
|
||||
"sudo pwsh -File {{user `image_folder`}}/SoftwareReport/SoftwareReport.Generator.ps1 -OutputDirectory {{user `image_folder`}}"
|
||||
"pwsh -File {{user `image_folder`}}/SoftwareReport/SoftwareReport.Generator.ps1 -OutputDirectory {{user `image_folder`}}"
|
||||
],
|
||||
"environment_vars":[
|
||||
"IMAGE_VERSION={{user `image_version`}}",
|
||||
|
||||
Reference in New Issue
Block a user