mirror of https://github.com/lhie1/Rules.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
265 B
Bash
9 lines
265 B
Bash
4 years ago
|
#!/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/*"
|