jordan zrewidował ten Gist 4 hours ago. Przejdź do rewizji
1 file changed, 13 insertions
sourcehut-to-github-mirror.yml(stworzono plik)
| @@ -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 | |
Nowsze
Starsze