chore(ci): fix ssh-keyscan using direct IP
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user