File tree 2 files changed +8
-3
lines changed
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -55,9 +55,13 @@ function main {
55
55
56
56
# Get all actions
57
57
$actions = LoadAllActionsFromConfiguration
58
+ if ($null -eq $actions ) {
59
+ Write-Error " Could not find any actions"
60
+ throw
61
+ }
58
62
59
63
# write the file outside of the container so we can pick it up
60
- Write-Host " Found [$ ( $actions.Count ) ] actions "
64
+ Write-Host " Found [$ ( $actions.Count ) ] actions"
61
65
$jsonObject = ($actions | ConvertTo-Json - Depth 10 - Compress)
62
66
63
67
# store the json in a file and write the path to the output variable
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ param (
10
10
# pull in central calls library
11
11
. $PSScriptRoot \github- calls.ps1
12
12
13
-
14
13
function GetActionsFromWorkflow {
15
14
param (
16
15
[string ] $workflow ,
@@ -252,7 +251,9 @@ function LoadAllActionsFromConfiguration() {
252
251
253
252
# todo: store the json file
254
253
# UploadActionsDataToGitHub -actions $actionsFound -marketplaceRepo $marketplaceRepo -PAT $PAT -repositoryName $repositoryName -repositoryOwner $repositoryOwner
254
+
255
+ return $summarizeActions
255
256
}
256
257
257
- return $summarizeActions
258
+ return $null
258
259
}
You can’t perform that action at this time.
0 commit comments