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