mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 05:07:02 +00:00
fix environment variable
This commit is contained in:
@@ -13,7 +13,7 @@ function Get-SqliteVersion {
|
||||
return "sqlite3 $sqliteVersion"
|
||||
}
|
||||
|
||||
function Get-MySqlVersion {
|
||||
function Get-MySQLVersion {
|
||||
$mySqlVersion = (mysql --version).Split("/usr/bin/")[1]
|
||||
return "MySQL ($mySqlVersion)"
|
||||
}
|
||||
@@ -23,7 +23,7 @@ function Build-MySQLSection {
|
||||
|
||||
$output += New-MDHeader "MySQL" -Level 4
|
||||
$output += New-MDList -Style Unordered -Lines @(
|
||||
(Get-MySqlVersion),
|
||||
(Get-MySQLVersion ),
|
||||
"MySQL Server (user:root password:root)",
|
||||
"MS SQL Server Client Tools"
|
||||
)
|
||||
|
||||
@@ -4,7 +4,7 @@ param (
|
||||
)
|
||||
|
||||
# Install MarkdownPS module for software report generation
|
||||
Install-Module MarkdownPS -Force -Scope CurrentUser
|
||||
Install-Module MarkdownPS -Force
|
||||
Import-Module MarkdownPS
|
||||
Import-Module (Join-Path $PSScriptRoot "SoftwareReport.CachedTools.psm1") -DisableNameChecking
|
||||
Import-Module (Join-Path $PSScriptRoot "SoftwareReport.Common.psm1") -DisableNameChecking
|
||||
@@ -28,7 +28,7 @@ $OSName = Get-OSName
|
||||
$markdown += New-MDHeader "$OSName" -Level 1
|
||||
|
||||
$markdown += New-MDList -Style Unordered -Lines @(
|
||||
"Image Version: $env:ImageVersion"
|
||||
"Image Version: $env:IMAGE_VERSION"
|
||||
)
|
||||
|
||||
$markdown += New-MDHeader "Installed Software" -Level 2
|
||||
|
||||
@@ -293,11 +293,12 @@
|
||||
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
|
||||
},
|
||||
{
|
||||
"type": "powershell",
|
||||
"type": "shell",
|
||||
"inline": [
|
||||
"pwsh -File '{{user `image_folder`}}/SoftwareReport/SoftwareReport.Generator.ps1' -OutputDirectory '{{user `image_folder`}}'"
|
||||
"sudo pwsh -File {{user `image_folder`}}/SoftwareReport/SoftwareReport.Generator.ps1 -OutputDirectory {{user `image_folder`}}"
|
||||
],
|
||||
"environment_vars":[
|
||||
"IMAGE_VERSION={{user `image_version`}}",
|
||||
"INSTALLER_SCRIPT_FOLDER={{user `installer_script_folder`}}",
|
||||
"ANNOUNCEMENTS={{user `announcements`}}"
|
||||
]
|
||||
|
||||
@@ -297,11 +297,12 @@
|
||||
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
|
||||
},
|
||||
{
|
||||
"type": "powershell",
|
||||
"type": "shell",
|
||||
"inline": [
|
||||
"pwsh -File '{{user `image_folder`}}/SoftwareReport/SoftwareReport.Generator.ps1' -OutputDirectory '{{user `image_folder`}}'"
|
||||
"sudo pwsh -File {{user `image_folder`}}/SoftwareReport/SoftwareReport.Generator.ps1 -OutputDirectory {{user `image_folder`}}"
|
||||
],
|
||||
"environment_vars":[
|
||||
"IMAGE_VERSION={{user `image_version`}}",
|
||||
"INSTALLER_SCRIPT_FOLDER={{user `installer_script_folder`}}",
|
||||
"ANNOUNCEMENTS={{user `announcements`}}"
|
||||
]
|
||||
|
||||
@@ -299,11 +299,12 @@
|
||||
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
|
||||
},
|
||||
{
|
||||
"type": "powershell",
|
||||
"type": "shell",
|
||||
"inline": [
|
||||
"pwsh -File '{{user `image_folder`}}/SoftwareReport/SoftwareReport.Generator.ps1' -OutputDirectory '{{user `image_folder`}}'"
|
||||
"sudo pwsh -File {{user `image_folder`}}/SoftwareReport/SoftwareReport.Generator.ps1 -OutputDirectory {{user `image_folder`}}"
|
||||
],
|
||||
"environment_vars":[
|
||||
"IMAGE_VERSION={{user `image_version`}}",
|
||||
"INSTALLER_SCRIPT_FOLDER={{user `installer_script_folder`}}",
|
||||
"ANNOUNCEMENTS={{user `announcements`}}"
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user