ci: add unshallow fetch and suppress ssh-keyscan stderr in mirror step
This commit is contained in:
+2
-1
@@ -615,8 +615,9 @@ steps:
|
|||||||
- mkdir -p ~/.ssh
|
- mkdir -p ~/.ssh
|
||||||
- echo "$GITHUB_SSH_KEY" > ~/.ssh/id_ed25519
|
- echo "$GITHUB_SSH_KEY" > ~/.ssh/id_ed25519
|
||||||
- chmod 600 ~/.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 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 main --force
|
||||||
- git push github --tags --force
|
- git push github --tags --force
|
||||||
when:
|
when:
|
||||||
|
|||||||
Reference in New Issue
Block a user