Skip to content

Commit

Permalink
Handle error on object
Browse files Browse the repository at this point in the history
  • Loading branch information
rajbos authored Sep 5, 2023
1 parent e1d31c4 commit ee09b80
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM ghcr.io/rajbos/actions-marketplace/powershell:7

COPY /Src/PowerShell/*.ps1 /src/

ENV DOCKER=true

COPY /Src/PowerShell/*.ps1 /src/

ENTRYPOINT ["pwsh", "/src/entrypoint.ps1"]
4 changes: 2 additions & 2 deletions Src/PowerShell/load-used-actions.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ function GetAllUsedActionsFromRepo {
}
}
catch {
Write-Warning "Error handling this workflow file:"
Write-Host $workflowFile.Replace($PAT, "****") | ConvertFrom-Json -Depth 10
Write-Warning "Error handling this workflow file [$($workflowFile.name)] in repo [$repo]:"
Write-Host ($workflowFile | ConvertFrom-Json -Depth 10).Replace($PAT, "****")
Write-Warning "----------------------------------"
Write-Host "Error: [$_]"
Write-Warning "----------------------------------"
Expand Down

0 comments on commit ee09b80

Please sign in to comment.