Fix CI: remove optional secret overrides step
Some checks failed
Deploy to talkpro / build-and-sync (push) Failing after 31s
Some checks failed
Deploy to talkpro / build-and-sync (push) Failing after 31s
Empty optional secrets made [ -n ... ] && echo fail under set -e. Job env already defines host, user, and deploy path. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -3,10 +3,7 @@
|
||||
# Required Gitea repo secret (Settings → Secrets → Actions):
|
||||
# TALKPRO_SSH_PRIVATE_KEY full PEM for ubuntu@talkpro (same as luis-only.pem)
|
||||
#
|
||||
# Optional secrets (override defaults below):
|
||||
# TALKPRO_HOST default 13.214.179.69
|
||||
# TALKPRO_USER default ubuntu
|
||||
# TALKPRO_REMOTE_ROOT default /home/ubuntu/talkpro
|
||||
# Host/user/path defaults are in the `env:` block below (edit there if needed).
|
||||
#
|
||||
# Requires a runner with: node 22+, npm, rsync, ssh, ssh-keyscan.
|
||||
|
||||
@@ -48,16 +45,6 @@ jobs:
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Apply optional secret overrides
|
||||
env:
|
||||
SECRET_HOST: ${{ secrets.TALKPRO_HOST }}
|
||||
SECRET_USER: ${{ secrets.TALKPRO_USER }}
|
||||
SECRET_ROOT: ${{ secrets.TALKPRO_REMOTE_ROOT }}
|
||||
run: |
|
||||
[ -n "$SECRET_HOST" ] && echo "TALKPRO_HOST=$SECRET_HOST" >> "$GITHUB_ENV"
|
||||
[ -n "$SECRET_USER" ] && echo "TALKPRO_USER=$SECRET_USER" >> "$GITHUB_ENV"
|
||||
[ -n "$SECRET_ROOT" ] && echo "TALKPRO_REMOTE_ROOT=$SECRET_ROOT" >> "$GITHUB_ENV"
|
||||
|
||||
- name: Trust host key
|
||||
run: |
|
||||
mkdir -p ~/.ssh
|
||||
|
||||
Reference in New Issue
Block a user