diff --git a/.github/actions/templates/getModuleTestFiles/action.yml b/.github/actions/templates/getModuleTestFiles/action.yml index f842952d39..1cce2fb82e 100644 --- a/.github/actions/templates/getModuleTestFiles/action.yml +++ b/.github/actions/templates/getModuleTestFiles/action.yml @@ -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::' diff --git a/.github/actions/templates/getWorkflowInput/action.yml b/.github/actions/templates/getWorkflowInput/action.yml index 6ddd2ba62c..af96c87aee 100644 --- a/.github/actions/templates/getWorkflowInput/action.yml +++ b/.github/actions/templates/getWorkflowInput/action.yml @@ -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 diff --git a/.github/actions/templates/validateModuleDeployment/action.yml b/.github/actions/templates/validateModuleDeployment/action.yml index abdab684d0..b13b11bea8 100644 --- a/.github/actions/templates/validateModuleDeployment/action.yml +++ b/.github/actions/templates/validateModuleDeployment/action.yml @@ -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 diff --git a/.github/actions/templates/validateModulePester/action.yml b/.github/actions/templates/validateModulePester/action.yml index 2677bc3d78..6f2a489539 100644 --- a/.github/actions/templates/validateModulePester/action.yml +++ b/.github/actions/templates/validateModulePester/action.yml @@ -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) #