Skip to content

Commit

Permalink
writeout all
Browse files Browse the repository at this point in the history
  • Loading branch information
eriqua committed Nov 8, 2022
1 parent 449e595 commit 9360649
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/actions/templates/getWorkflowInput/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ runs:
}
# Output values to be accessed by next jobs
echo "removeDeployment=$removeDeployment" >> $env:GITHUB_OUTPUT
# echo "removeDeployment=$removeDeployment" >> $env:GITHUB_OUTPUT
Write-Output ('{0}={1}' -f 'removeDeployment', $removeDeployment) >> $env:GITHUB_OUTPUT
Write-Output '::endgroup::'
shell: pwsh
9 changes: 6 additions & 3 deletions .github/actions/templates/validateModuleDeployment/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -345,19 +345,22 @@ runs:
$res = New-TemplateDeployment @functionInput -Verbose
# Get deployment name
echo "deploymentName=$($res.deploymentName)" >> $env:GITHUB_OUTPUT
# echo "deploymentName=$($res.deploymentName)" >> $env:GITHUB_OUTPUT
Write-Output ('{0}={1}' -f 'deploymentName', $res.deploymentName) >> $env:GITHUB_OUTPUT
# Populate further outputs
$deploymentOutputHash = @{}
foreach ($outputKey in $res.deploymentOutput.Keys) {
echo "outputKey=$($res.deploymentOutput[$outputKey].Value)" >> $env:GITHUB_OUTPUT
# echo "outputKey=$($res.deploymentOutput[$outputKey].Value)" >> $env:GITHUB_OUTPUT
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
echo "deploymentOutput=$deploymentOutput" >> $env:GITHUB_OUTPUT
# echo "deploymentOutput=$deploymentOutput" >> $env:GITHUB_OUTPUT
Write-Output ('{0}={1}' -f 'deploymentOutput', $deploymentOutput) >> $env:GITHUB_OUTPUT
if ($res.ContainsKey('exception')) {
# Happens only if there is an exception
Expand Down
3 changes: 2 additions & 1 deletion .github/actions/templates/validateModulePester/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ runs:
$outputPathFile = 'testResults.xml'
$outputPath = Join-Path $outputPathDirectory $outputPathFile
Write-Verbose "Pester tests output: $outputPath" -Verbose
echo "outputPath=$outputPath" >> $env:GITHUB_OUTPUT
# echo "outputPath=$outputPath" >> $env:GITHUB_OUTPUT
Write-Output ('{0}={1}' -f 'outputPath', $outputPath) >> $env:GITHUB_OUTPUT
# --------------------- #
# Invoke Pester test(s) #
Expand Down

0 comments on commit 9360649

Please # to comment.