Skip to content

Commit

Permalink
GHA: remove redundant step
Browse files Browse the repository at this point in the history
  • Loading branch information
saltydk committed Feb 4, 2024
1 parent aa9a3ef commit 00545ae
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/saltbox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ jobs:
sleep $((attempt * 2))
fi
done
if [ $attempt -eq $max_attempts ]; then
echo "API requests failed after $max_attempts attempts, defaulting to failure."
echo "WORKFLOW_CONCLUSION=failure" >> $GITHUB_ENV
Expand All @@ -172,13 +173,8 @@ jobs:
echo "Some jobs failed."
echo "WORKFLOW_CONCLUSION=failure" >> $GITHUB_ENV
elif echo "$conclusions" | grep -q "success"; then
if echo "$conclusions" | grep -qv "failure"; then
echo "All jobs succeeded."
echo "WORKFLOW_CONCLUSION=success" >> $GITHUB_ENV
else
echo "Some jobs failed."
echo "WORKFLOW_CONCLUSION=failure" >> $GITHUB_ENV
fi
echo "All jobs succeeded or were skipped."
echo "WORKFLOW_CONCLUSION=success" >> $GITHUB_ENV
else
echo "Defaulting to failure due to uncertain job conclusions."
echo "WORKFLOW_CONCLUSION=failure" >> $GITHUB_ENV
Expand Down

0 comments on commit 00545ae

Please sign in to comment.