mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2026-01-06 18:17:26 +08:00
[Windows] Update documentation generation to use shared software report module (#6834)
This commit is contained in:
committed by
GitHub
parent
f7f519dcc4
commit
447c8387a2
@@ -82,6 +82,11 @@
|
||||
"source": "{{ template_dir }}/scripts/SoftwareReport",
|
||||
"destination": "{{user `image_folder`}}"
|
||||
},
|
||||
{
|
||||
"type": "file",
|
||||
"source": "{{ template_dir }}/../../helpers/software-report-base",
|
||||
"destination": "{{user `image_folder`}}/SoftwareReport/"
|
||||
},
|
||||
{
|
||||
"type": "file",
|
||||
"source": "{{ template_dir }}/post-generation",
|
||||
@@ -302,15 +307,22 @@
|
||||
{
|
||||
"type": "powershell",
|
||||
"inline": [
|
||||
"if (-not (Test-Path C:\\InstalledSoftware.md)) { throw 'C:\\InstalledSoftware.md not found' }"
|
||||
"if (-not (Test-Path C:\\software-report.md)) { throw 'C:\\software-report.md not found' }",
|
||||
"if (-not (Test-Path C:\\software-report.json)) { throw 'C:\\software-report.json not found' }"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "file",
|
||||
"source": "C:\\InstalledSoftware.md",
|
||||
"source": "C:\\software-report.md",
|
||||
"destination": "{{ template_dir }}/Windows2022-Readme.md",
|
||||
"direction": "download"
|
||||
},
|
||||
{
|
||||
"type": "file",
|
||||
"source": "C:\\software-report.json",
|
||||
"destination": "{{ template_dir }}/software-report.json",
|
||||
"direction": "download"
|
||||
},
|
||||
{
|
||||
"type": "powershell",
|
||||
"skip_clean": true,
|
||||
|
||||
Reference in New Issue
Block a user