mirror-sync.yml (651B)
1 image: alpine/edge 2 packages: 3 - git 4 secrets: 5 - 1c238745-e2fe-4372-8682-c8b6929ffbcd 6 tasks: 7 - sync: | 8 ssh-keyscan github.com >> ~/.ssh/known_hosts 9 git clone --mirror https://git.sr.ht/~jackmordaunt/nativeaudio 10 # The mirror clone lands in nativeaudio.git. Plain "nativeaudio" is 11 # the checkout this build already made, whose branches live under 12 # refs/remotes/origin, so mirroring that pushed every branch but main 13 # to a ref GitHub does not treat as a branch and will not build. 14 cd nativeaudio.git 15 git remote set-url --push origin git@github.com:JackMordaunt/nativeaudio.git 16 git push --mirror