Skip to content

Commit

Permalink
Uh, fix the any_success / all_failure wrongthink
Browse files Browse the repository at this point in the history
It is "all failure", and that's properly true.
  • Loading branch information
antifuchs committed Aug 4, 2023
1 parent fbd0682 commit d942b37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/_internal_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

0 comments on commit d942b37

Please sign in to comment.