chore(ci): fix ssh-keyscan using direct IP

This commit is contained in:
2026-07-03 17:01:16 +08:00
parent fb58e62fd9
commit 53382d98ad
+2 -2
View File
@@ -22,8 +22,8 @@ jobs:
- name: Add Gitea SSH Host Key
run: |
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 thunderobot >> ~/.ssh/known_hosts
ssh-keyscan -p 222 100.93.226.13 >> ~/.ssh/known_hosts
sed -i 's/100.93.226.13/thunderobot/g' ~/.ssh/known_hosts
- name: Checkout Code
uses: actions/checkout@v4