diff --git a/.github/workflows/data-json-test.yml b/.github/workflows/data-json-test.yml index 12030b1b..8ba65e2c 100644 --- a/.github/workflows/data-json-test.yml +++ b/.github/workflows/data-json-test.yml @@ -56,7 +56,6 @@ jobs: if [ '${{ steps.data-total.outputs.data-total-json }}' == '' ]; then echo "Output must not be empty"; exit 1; fi - if ! echo '${{ steps.data-total.outputs.data-total-json }}' | jq '.repository' > /dev/null 2>&1; then - echo "output must have 'repository'" >&2 - exit 1 + if ! echo '${{ steps.data-total.outputs.data-total-json }}' | jq 'has("repository", "branch", "workflow", "run_id", "label", "cpu_avg_percent", "energy_joules", "power_avg_watts") and length == 8'; then + echo "output has wrong structure"; exit 1; fi