mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-09-05 07:27:27 +08:00
fix: surface backend deploy errors in GitHub Actions (#917)
This commit is contained in:
@@ -67,11 +67,12 @@ jobs:
|
|||||||
if [ "$debug_mode" = "true" ]; then
|
if [ "$debug_mode" = "true" ]; then
|
||||||
pnpm run deploy
|
pnpm run deploy
|
||||||
else
|
else
|
||||||
output=$(pnpm run deploy 2>&1)
|
if pnpm run deploy >/dev/null 2>&1; then
|
||||||
if [ $? -ne 0 ]; then
|
echo "Deploy succeeded"
|
||||||
code=$?
|
else
|
||||||
echo "Command failed with exit code $code"
|
code=$?
|
||||||
exit $code
|
echo "Command failed with exit code $code"
|
||||||
|
exit "$code"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
echo "Deployed for tag ${{ github.ref_name }}"
|
echo "Deployed for tag ${{ github.ref_name }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user