Fix finish step for pr tests and notebook tests (#4467)

This commit is contained in:
Lianmin Zheng
2025-03-16 00:52:06 -07:00
committed by GitHub
parent 1a3fa75f2f
commit c30976fb41
4 changed files with 41 additions and 5 deletions

View File

@@ -130,5 +130,14 @@ jobs:
needs: [unit-test, mla-test, lint]
runs-on: ubuntu-latest
steps:
- name: Finish
run: echo "This is an empty step to ensure that all jobs are completed."
- name: Check all dependent job statuses
run: |
results=(${{ join(needs.*.result, ' ') }})
for result in "${results[@]}"; do
if [ "$result" = "failure" ] || [ "$result" = "cancelled" ]; then
echo "Job failed with result: $result"
exit 1
fi
done
echo "All jobs completed successfully"
exit 0