Skip to content

Commit

Permalink
Update entrypoint.ps1 (#24)
Browse files Browse the repository at this point in the history
Write to the output file instead of set-output
  • Loading branch information
rajbos authored Feb 17, 2023
1 parent 48a6cb6 commit f630e27
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Src/PowerShell/entrypoint.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ function main {
Write-Host "Found [$($actions.Count)] actions "
#Write-Verbose $actions | ConvertTo-Json -Depth 10
$jsonObject = ($actions | ConvertTo-Json -Depth 10 -Compress)

Write-Output "::set-output name=actions::'$jsonObject'"
echo "actions='$jsonObject'" >> $env:GITHUB_OUTPUT
Write-Host "Stored actions in outputs list. Use $${{ steps.<step id>.outputs.actions }} in next action to load the json"
}

Expand All @@ -50,4 +49,4 @@ catch {
Write-Error $_
# return the container with an erroneous exit code:
exit 1
}
}

0 comments on commit f630e27

Please sign in to comment.