Skip to content

Commit

Permalink
Move if action failed to the right matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoref committed Mar 6, 2024
1 parent c675f07 commit c31d40c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/maybe-fail.yml
Expand Up @@ -38,6 +38,10 @@ jobs:
echo "result: $result"
echo
) | tee -a "$GITHUB_STEP_SUMMARY"
- name: If action failed
if: steps.maybe-fail.outcome == 'failure'
run: |
echo 'Something must be done because maybe-fail failed!' | tee -a "$GITHUB_STEP_SUMMARY"
- name: Next Step
run:
echo Next step | tee -a "$GITHUB_STEP_SUMMARY"
Expand Down Expand Up @@ -77,10 +81,6 @@ jobs:
echo "result: $result"
echo
) | tee -a "$GITHUB_STEP_SUMMARY"
- name: If action failed
if: steps.maybe-fail.outcome == 'failure'
run: |
echo 'Something must be done because maybe-fail failed!' | tee -a "$GITHUB_STEP_SUMMARY"
- name: Next Step
run:
echo Next step | tee -a "$GITHUB_STEP_SUMMARY"

0 comments on commit c31d40c

Please sign in to comment.