Skip to content

Commit 39205c9

Browse files
committed
fix logs
1 parent dbd639d commit 39205c9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

checks/manifest

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,17 @@ function checkRun () {
2424
exit 1
2525
else
2626
checkSuccess "manifest.json file exist"
27+
missingKeys="no"
2728
jq . "$manifest" > "$GITHUB_ACTION_PATH/data/manifest.json"
2829
jq . "$GITHUB_ACTION_PATH/data/manifest.json"
2930
for key in "${requiredKeys[@]}"; do
3031
if [ "$(jq --arg entry "$key" '.[$entry]' -r "$manifest")" == "null" ]; then
31-
checkError "manifest.json file missing key $key"
32+
checkError "manifest.json file missing key '$key'"
33+
missingKeys="yes"
3234
fi
3335
done
34-
checkSuccess "All required keys are present in manifest.json"
36+
if [ "$missingKeys" == "no" ]; then
37+
checkSuccess "All required keys are present in manifest.json"
38+
fi
3539
fi
3640
}

0 commit comments

Comments
 (0)