feat: add basic sync
build / Git Repo Sync (push) Failing after 4s

This commit is contained in:
Wang Chucheng
2021-04-10 14:56:30 +08:00
commit 63782025e8
5 changed files with 296 additions and 0 deletions
Executable
+14
View File
@@ -0,0 +1,14 @@
git remote add target https://${INPUT_TARGET_USERNAME}:${INPUT_TARGET_TOKEN}@${INPUT_TARGET_URL#https://}
case "${GITHUB_EVENT_NAME}" in
push)
git push -f --all target
git push -f --tags target
;;
delete)
git push -d target ${GITHUB_EVENT_REF}
;;
*)
break
;;
esac