Skip to content

Commit

Permalink
chore: improve logic
Browse files Browse the repository at this point in the history
  • Loading branch information
UlisesGascon committed Apr 18, 2024
1 parent 722a2a5 commit 4712293
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,15 @@ jobs:
echo "Workflow did not complete within the expected time"
fi
if [[ "$status" != "completed" ]]; then
echo "Workflow failed. Current status: $status"
# Get the conclusion of the workflow run
conclusion=$(echo "$response" | jq -r .conclusion)
if [[ "$status" == "completed" && "$conclusion" != "success" ]]; then
echo "Workflow completed but failed. Conclusion: $conclusion"
exit 1
fi
if [[ "$status" == "completed" ]]; then
echo "Workflow has been completed"
if [[ "$status" == "completed" && "$conclusion" == "success" ]]; then
echo "Workflow has been completed successfully"
exit 0
fi

0 comments on commit 4712293

Please sign in to comment.