ci: fix ssh
Some checks failed
build / build (pull_request) Failing after 2m8s
build / trigger-build-image (pull_request) Has been skipped
build / build (push) Failing after 1m48s
build / trigger-build-image (push) Has been skipped

This commit is contained in:
张泊明518370910136 2026-07-23 04:52:10 -07:00
parent f259f88029
commit 81cc320082
GPG Key ID: D47306D7062CDA9D

View File

@ -39,10 +39,8 @@ jobs:
mkdir -p ~/.ssh
echo "${{ secrets.DEPLOY_PRIVATE_KEY }}" > ~/.ssh/id_ed25519
echo "${{ secrets.DEPLOY_KEY }}" > ~/.ssh/id_ed25519.pub
chmod 600 ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519.pub
ssh-keyscan -p 2222 focs.gc.sjtu.edu.cn >> ~/.ssh/known_hosts
ssh -T git@focs.gc.sjtu.edu.cn -p 2222
chmod 600 ~/.ssh/id_ed25519 ~/.ssh/id_ed25519.pub
ssh -o StrictHostKeyChecking=accept-new -T git@focs.gc.sjtu.edu.cn -p 2222
- name: Set up Git
run: |
git config --global user.name "bot-joj"