platypush/.drone/github-mirror.sh
Fabio Manganiello 4c80e6fd34
All checks were successful
continuous-integration/drone/push Build is passing
Fixed github.com repo URL case.
2024-07-27 15:38:55 +02:00

15 lines
419 B
Bash
Executable file

#!/bin/sh
. .drone/macros/configure-git.sh
. .drone/macros/configure-ssh.sh
ssh-keyscan github.com >> ~/.ssh/known_hosts 2>/dev/null
# Clone the repository
git remote add github git@github.com:/blacklight/platypush.git
git pull --rebase github "$(git branch | head -1 | awk '{print $2}')" || echo "No such branch on Github"
# Push the changes to the GitHub mirror
git push --all -v github
git push --tags -v github