diff --git a/Src/PowerShell/entrypoint.ps1 b/Src/PowerShell/entrypoint.ps1 index 7170e9e..6e08378 100644 --- a/Src/PowerShell/entrypoint.ps1 +++ b/Src/PowerShell/entrypoint.ps1 @@ -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..outputs.actions }} in next action to load the json" Write-Host "Stored actions file in the actions output. Use $${{ steps..outputs.actions-file }} in next action to load the file"