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

@@ -45,3 +45,22 @@ jobs:
cd docs
make clean
make compile
finish:
needs: [
run-all-notebooks
]
runs-on: ubuntu-latest
steps:
- 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