Última actividad 4 hours ago

jordan's Avatar jordan revisó este gist 4 hours ago. Ir a la revisión

1 file changed, 13 insertions

sourcehut-to-github-mirror.yml(archivo creado)

@@ -0,0 +1,13 @@
1 + # Mirror Sourcehut repositories to GitHub
2 +
3 + image: alpine/latest
4 + sources:
5 + - https://git.sr.ht/~username/repository
6 + secrets:
7 + - big-long-uuid # this is your public SSH key, add it to GitHub at https://github.com/settings/keys and Sourcehut at https://builds.sr.ht/secrets
8 + tasks:
9 + - mirror-to-github: |
10 + cd repository
11 + git remote add github git@github.com:username/repository.git
12 + ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
13 + git push github main
Siguiente Anterior