Skip to content

Commit da9c615

Browse files
authored
Update build-status check (#1651)
1 parent f224654 commit da9c615

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,15 @@ jobs:
4040
build-status:
4141
needs: build
4242
runs-on: ubuntu-24.04-arm
43+
if: always()
4344
steps:
44-
- run: |
45-
echo all build jobs completed successfully.
45+
- name: Check build matrix result
46+
run: |
47+
if [ "${{ needs.build.result }}" != "success" ]; then
48+
echo "Some build jobs failed."
49+
exit 1
50+
fi
51+
echo "All build jobs completed successfully."
4652
4753
publish-snapshot:
4854
needs: build

0 commit comments

Comments
 (0)