diff --git a/.github/workflows/_internal_tests.yml b/.github/workflows/_internal_tests.yml index 4a088e3..bc9518b 100644 --- a/.github/workflows/_internal_tests.yml +++ b/.github/workflows/_internal_tests.yml @@ -58,11 +58,11 @@ jobs: env: NEEDS_JSON: ${{toJSON(needs)}} run: > - echo "any_success=$(echo "$NEEDS_JSON" | jq '. | to_entries | map({value: .value, key: (.key | sub("^failure_"; ""))}) | map(.value.outputs["_internal_" + .key + "_result"] == "failure") | all')" >>$GITHUB_OUTPUT + echo "all_failure=$(echo "$NEEDS_JSON" | jq '. | to_entries | map({value: .value, key: (.key | sub("^failure_"; ""))}) | map(.value.outputs["_internal_" + .key + "_result"] == "failure") | all')" >>$GITHUB_OUTPUT - name: debug env: OUTCOMES: ${{toJSON(steps.outcomes)}} run: echo $OUTCOMES - name: failure run: exit 1 - if: steps.outcomes.outputs.any_success == 'false' + if: steps.outcomes.outputs.all_failure == 'true'