diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 95494f9..3169074 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -60,7 +60,7 @@ jobs: run: | $os = $PSVersionTable.OS $testResultsDir = $(Join-Path -Path (Get-Location) -ChildPath "${{ env.TEST_RESULTS_DIR }}") - Write-Output "::set-output name=test-results-dir::$testResultsDir" + Write-Output "test-results-dir=$testResultsDir" >> $env:GITHUB_OUTPUT dotnet test ${{ env.SLN_FILEPATH }} ` -c Release ` --no-build ` diff --git a/entrypoint.ps1 b/entrypoint.ps1 index 9841f61..b25a7f9 100644 --- a/entrypoint.ps1 +++ b/entrypoint.ps1 @@ -6,7 +6,7 @@ function Main() Write-Output "::group::Input arguments" Write-Output $inputArgs Write-Output "::endgroup::" - + Write-Output "::group::Run dotnet GitHub issue form parser" $output = dotnet '/app/GitHubIssuesParserCli.dll' $inputArgs if ($LASTEXITCODE -ne 0 ) @@ -14,7 +14,12 @@ function Main() Write-Output "::error::GitHub issue form parser didn't complete successfully. See the step's log for more details." exit $LASTEXITCODE } - Write-Output "::set-output name=parsed-issue::$output" + + $random = Get-Random + $delimiter = "EOF_$random" + Write-Output "parsed-issue<<$delimiter" >> $env:GITHUB_OUTPUT + Write-Output $output >> $env:GITHUB_OUTPUT + Write-Output $delimiter >> $env:GITHUB_OUTPUT Write-Output "::endgroup::" Write-Output "::group::dotnet GitHub issue form parser output"