ci: fix ssh
All checks were successful
submodules sync / sync (push) Successful in 46s
build / build (push) Successful in 1m54s
build / trigger-build-image (push) Successful in 5s

This commit is contained in:
张泊明518370910136 2026-07-23 04:54:58 -07:00
parent cdcc45074e
commit 12b06c2797
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"