chore: fix surge preview deploy not throw error (#50356)

Signed-off-by: afc163 <afc163@gmail.com>
This commit is contained in:
afc163 2024-08-11 15:29:37 +08:00 committed by GitHub
parent dab9ab69d0
commit dd343218a2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -117,3 +117,10 @@ jobs:
<!-- AUTO_PREVIEW_HOOK -->
body-include: '<!-- AUTO_PREVIEW_HOOK -->'
number: ${{ steps.pr.outputs.id }}
- name: Check surge deploy result and exit if failed
run: |
if [ "${{ steps.deploy.outcome }}" != "success" ]; then
echo "Surge Deploy failed: ${{ steps.deploy.conclusion }}"
exit 1
fi