Skip to content

Commit

Permalink
Add conditional logic
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoref committed Mar 6, 2024
1 parent 15cb168 commit c675f07
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/maybe-fail.yml
Expand Up @@ -77,6 +77,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"

0 comments on commit c675f07

Please sign in to comment.