ci: add unshallow fetch and suppress ssh-keyscan stderr in mirror step

This commit is contained in:
Celes Renata
2026-04-19 19:46:11 +00:00
parent 1f69a27e3b
commit 886911149f
+2 -1
View File
@@ -615,8 +615,9 @@ steps:
- mkdir -p ~/.ssh
- echo "$GITHUB_SSH_KEY" > ~/.ssh/id_ed25519
- chmod 600 ~/.ssh/id_ed25519
- ssh-keyscan github.com >> ~/.ssh/known_hosts
- ssh-keyscan github.com >> ~/.ssh/known_hosts 2>/dev/null
- git remote add github git@github.com:celesrenata/stonks-oracle.git || git remote set-url github git@github.com:celesrenata/stonks-oracle.git
- git fetch --unshallow origin || true
- git push github main --force
- git push github --tags --force
when: