Skip to content

Commit

Permalink
Fix place to return the value
Browse files Browse the repository at this point in the history
  • Loading branch information
rajbos committed Feb 19, 2024
1 parent 49ad9cd commit 35daab0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 5 additions & 1 deletion Src/PowerShell/entrypoint.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,13 @@ function main {

# Get all actions
$actions = LoadAllActionsFromConfiguration
if ($null -eq $actions) {
Write-Error "Could not find any actions"
throw
}

# write the file outside of the container so we can pick it up
Write-Host "Found [$($actions.Count)] actions "
Write-Host "Found [$($actions.Count)] actions"
$jsonObject = ($actions | ConvertTo-Json -Depth 10 -Compress)

# store the json in a file and write the path to the output variable
Expand Down
5 changes: 3 additions & 2 deletions Src/PowerShell/load-used-actions.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ param (
# pull in central calls library
. $PSScriptRoot\github-calls.ps1


function GetActionsFromWorkflow {
param (
[string] $workflow,
Expand Down Expand Up @@ -252,7 +251,9 @@ function LoadAllActionsFromConfiguration() {

# todo: store the json file
#UploadActionsDataToGitHub -actions $actionsFound -marketplaceRepo $marketplaceRepo -PAT $PAT -repositoryName $repositoryName -repositoryOwner $repositoryOwner

return $summarizeActions
}

return $summarizeActions
return $null
}

0 comments on commit 35daab0

Please sign in to comment.