Skip to content

Commit

Permalink
fix order
Browse files Browse the repository at this point in the history
  • Loading branch information
rajbos authored Jul 21, 2023
1 parent f550cf3 commit c95d702
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Src/PowerShell/entrypoint.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ function main {
Write-Host "Found [$($actions.Count)] actions "
#Write-Verbose $actions | ConvertTo-Json -Depth 10
$jsonObject = ($actions | ConvertTo-Json -Depth 10 -Compress)
Set-Content -Value "$jsonObject" -Path $filePath


# store the json in a file and write the path to the output variable
Write-Host "Location: $($env:GITHUB_WORKSPACE)"
$filePath = "$($env:GITHUB_WORKSPACE)/used-actions.json"
Set-Content -Value "$jsonObject" -Path $filePath
Set-Content -Value "actions-file='$filePath'" -Path $env:GITHUB_OUTPUT
Write-Host "Stored actions in the actions output. Use $${{ steps.<step id>.outputs.actions }} in next action to load the json"
Write-Host "Stored actions file in the actions output. Use $${{ steps.<step id>.outputs.actions-file }} in next action to load the file"
Expand Down

0 comments on commit c95d702

Please sign in to comment.