chore(ci): fix ssh-keyscan using direct IP
Release / Build & Release (push) Failing after 3s

This commit is contained in:
2026-07-03 17:01:16 +08:00
parent fb58e62fd9
commit 4fe0378d1c
+2 -2
View File
@@ -22,8 +22,8 @@ jobs:
- name: Add Gitea SSH Host Key - name: Add Gitea SSH Host Key
run: | run: |
mkdir -p ~/.ssh mkdir -p ~/.ssh
sudo sh -c 'echo "100.93.226.13 thunderobot" >> /etc/hosts' || echo "100.93.226.13 thunderobot" >> /etc/hosts || true ssh-keyscan -p 222 100.93.226.13 >> ~/.ssh/known_hosts
ssh-keyscan -p 222 thunderobot >> ~/.ssh/known_hosts sed -i 's/100.93.226.13/thunderobot/g' ~/.ssh/known_hosts
- name: Checkout Code - name: Checkout Code
uses: actions/checkout@v4 uses: actions/checkout@v4