We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbd639d commit 39205c9Copy full SHA for 39205c9
checks/manifest
@@ -24,13 +24,17 @@ function checkRun () {
24
exit 1
25
else
26
checkSuccess "manifest.json file exist"
27
+ missingKeys="no"
28
jq . "$manifest" > "$GITHUB_ACTION_PATH/data/manifest.json"
29
jq . "$GITHUB_ACTION_PATH/data/manifest.json"
30
for key in "${requiredKeys[@]}"; do
31
if [ "$(jq --arg entry "$key" '.[$entry]' -r "$manifest")" == "null" ]; then
- checkError "manifest.json file missing key $key"
32
+ checkError "manifest.json file missing key '$key'"
33
+ missingKeys="yes"
34
fi
35
done
- 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
39
40
}
0 commit comments