~rockorager/tree-sitter-scfg

a5512800ea0220da4abbae61b8aea8423d1549aa — Tim Culverhouse a day ago 6deae0c main
add github mirror

Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
1 files changed, 16 insertions(+), 0 deletions(-)

A .build.yml
A .build.yml => .build.yml +16 -0
@@ 0,0 1,16 @@
image: alpine/edge
packages:
    - git
secrets:
    - d48e3c42-9d65-452f-9693-68653a855858 # ssh key for mirroring
environment:
    GIT_SSH_COMMAND: ssh -o StrictHostKeyChecking=no
tasks:
    - mirror: |
        # Don't run on GitHub PRs
        if [ "$BUILD_REASON" = 'github-pr' ]; then
            exit
        fi

        git clone --mirror https://git.sr.ht/~rockorager/tree-sitter-scfg tree-sitter-scfg.git
        git -C tree-sitter-scfg.git push --force --mirror git@github.com:rockorager/tree-sitter-scfg