Skip to content

Commit 772a0a7

Browse files
committed
fix(exit): -_-
1 parent 6754c64 commit 772a0a7

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/deploy-via-ts.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,14 @@ jobs:
5757
5858
echo "Deployment finished successfully."
5959
exit 0
60-
REMOTE
61-
# ensure secrets are available to the step's runner context (they are by default)
60+
REMOTE_SCRIPT
61+
62+
ssh_exit=$?
63+
echo "SSH client exit code: $ssh_exit"
64+
65+
if [ "$ssh_exit" -ne 0 ]; then
66+
echo "ERROR: SSH command returned non-zero exit code: $ssh_exit"
67+
exit $ssh_exit
68+
fi
69+
70+
echo "Workflow step completed (ssh returned 0)."

0 commit comments

Comments
 (0)