Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/templates/getModuleTestFiles/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ runs:
$compressedOutput = "[$compressedOutput]"
}
Write-Verbose "Publishing output: $compressedOutput" -Verbose
Write-Output "::set-output name=moduleTestFilePaths::$compressedOutput"
Write-Output ('{0}={1}' -f 'moduleTestFilePaths', $compressedOutput) >> $env:GITHUB_OUTPUT
Write-Output '::endgroup::'
2 changes: 1 addition & 1 deletion .github/actions/templates/getWorkflowInput/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ runs:
}

# Output values to be accessed by next jobs
Write-Output "::set-output name=removeDeployment::$removeDeployment"
Write-Output ('{0}={1}' -f 'removeDeployment', $removeDeployment) >> $env:GITHUB_OUTPUT

Write-Output '::endgroup::'
shell: pwsh
Original file line number Diff line number Diff line change
Expand Up @@ -345,19 +345,19 @@ runs:
$res = New-TemplateDeployment @functionInput -Verbose

# Get deployment name
Write-Output ('::set-output name={0}::{1}' -f 'deploymentName', $res.deploymentName)
Write-Output ('{0}={1}' -f 'deploymentName', $res.deploymentName) >> $env:GITHUB_OUTPUT

# Populate further outputs
$deploymentOutputHash = @{}

foreach ($outputKey in $res.deploymentOutput.Keys) {
Write-Output ('::set-output name={0}::{1}' -f $outputKey, $res.deploymentOutput[$outputKey].Value)
Write-Output ('{0}={1}' -f 'outputKey', $res.deploymentOutput[$outputKey].Value) >> $env:GITHUB_OUTPUT
$deploymentOutputHash.add($outputKey, $res.deploymentOutput[$outputKey].Value)
}

$deploymentOutput = $deploymentOutputHash | ConvertTo-Json -Compress -Depth 100
Write-Verbose "Deployment output: $deploymentOutput" -Verbose
Write-Output ('::set-output name={0}::{1}' -f 'deploymentOutput', $deploymentOutput)
Write-Output ('{0}={1}' -f 'deploymentOutput', $deploymentOutput) >> $env:GITHUB_OUTPUT

if ($res.ContainsKey('exception')) {
# Happens only if there is an exception
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ runs:
$outputPathFile = 'testResults.xml'
$outputPath = Join-Path $outputPathDirectory $outputPathFile
Write-Verbose "Pester tests output: $outputPath" -Verbose
Write-Output ('::set-output name={0}::{1}' -f 'outputPath', $outputPath)
Write-Output ('{0}={1}' -f 'outputPath', $outputPath) >> $env:GITHUB_OUTPUT

# --------------------- #
# Invoke Pester test(s) #
Expand Down