CI: install rsync and openssh-client before deploy
Some checks failed
Deploy to talkpro / build-and-sync (push) Failing after 11s

Gitea/act runners often lack rsync; apt/apk/dnf install step runs
before ssh/rsync in deploy-talkpro.sh.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-05-18 15:17:13 +08:00
parent fe14ca30ff
commit 5f9e8db7e5
2 changed files with 23 additions and 0 deletions

View File

@@ -45,6 +45,26 @@ jobs:
exit 1
fi
- name: Install rsync and SSH client
run: |
if command -v rsync >/dev/null && command -v ssh >/dev/null; then
echo "rsync and ssh already installed"
exit 0
fi
if command -v apt-get >/dev/null 2>&1; then
sudo apt-get update -qq
sudo apt-get install -y -qq rsync openssh-client
elif command -v apk >/dev/null 2>&1; then
sudo apk add --no-cache rsync openssh-client-default
elif command -v dnf >/dev/null 2>&1; then
sudo dnf install -y rsync openssh-clients
else
echo "ERROR: Could not install rsync — apt-get, apk, or dnf required" >&2
exit 1
fi
command -v rsync
command -v ssh
- name: Trust host key
run: |
mkdir -p ~/.ssh