Fix finish step for pr tests and notebook tests (#4467)
This commit is contained in:
19
.github/workflows/execute-notebook.yml
vendored
19
.github/workflows/execute-notebook.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user