Skip to content

Commit

Permalink
Make output smarter
Browse files Browse the repository at this point in the history
  • Loading branch information
NavidMitchell committed Jan 27, 2025
1 parent 28747b5 commit 24423d7
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/gradle-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,16 @@ jobs:
sha: ${{github.event.pull_request.head.sha || github.sha}}
target_url: https://kinotic-foundation.github.io/structures/allure/${{ github.run_number }}

- name: Check any Builds failed
- name: Check If Failure
if: ${{ steps.gradle_build.outcome == 'failure' || steps.run_e2e_tests.outcome == 'failure' }}
run: |
echo "Build or unit tests failed."
if [ "${{ steps.gradle_build.outcome }}" == "failure" ]; then
echo "Gradle Build failed."
fi
if [ "${{ steps.run_e2e_tests.outcome }}" == "failure" ]; then
echo "E2E Tests failed."
fi
# Optionally mark the job as failed
exit 1

0 comments on commit 24423d7

Please sign in to comment.