Enhance SSH setup in deployment workflow to include error handling for empty SSH key
Some checks failed
Deploy Development / deploy (push) Failing after 28s
Some checks failed
Deploy Development / deploy (push) Failing after 28s
This commit is contained in:
@@ -31,6 +31,13 @@ jobs:
|
||||
- name: Setup SSH
|
||||
shell: sh
|
||||
run: |
|
||||
set -e
|
||||
|
||||
if [ -z "${DEPLOY_SSH_KEY}" ]; then
|
||||
echo "❌ DEPLOY_SSH_KEY is EMPTY"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mkdir -p ~/.ssh
|
||||
chmod 700 ~/.ssh
|
||||
|
||||
|
||||
Reference in New Issue
Block a user