Auto Sync

This commit is contained in:
lhie1
2020-12-09 04:49:05 +08:00
parent 916acc4a9c
commit f88ea31e7a
6 changed files with 59 additions and 326 deletions
Executable
+8
View File
@@ -0,0 +1,8 @@
#!/usr/bin/env sh
set -eu
/setup-ssh.sh
export GIT_SSH_COMMAND="ssh -v -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no -l $INPUT_SSH_USERNAME"
git remote add mirror "$INPUT_TARGET_REPO_URL"
git push --tags --force --prune mirror "refs/remotes/origin/*:refs/heads/*"