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 6fe20d9 commit a9a7b90Copy full SHA for a9a7b90
.github/workflows/test-output.yaml
@@ -117,6 +117,8 @@ jobs:
117
fi
118
119
## Check if the JSON output file exists and validate its contents
120
+
121
+ cat "$JSON_OUTPUT_PATH"
122
123
if [[ ! -f "$JSON_OUTPUT_PATH" ]]; then
124
echo "::error:: JSON output file not found at $JSON_OUTPUT_PATH"
@@ -149,8 +151,6 @@ jobs:
149
151
exit 1
150
152
153
- # Validate list becomes array (preserves order)
- JSON_MY_LIST=$(jq -c '.my_list' "$JSON_OUTPUT_PATH")
154
# List from tolist(toset()) may have different order, so check elements exist
155
JSON_MY_LIST_HAS_ONE=$(jq -r '.my_list | contains(["one"])' "$JSON_OUTPUT_PATH")
156
JSON_MY_LIST_HAS_TWO=$(jq -r '.my_list | contains(["two"])' "$JSON_OUTPUT_PATH")
0 commit comments