From 10ddecc775ccbf28321b1b864a1f9a287f8e4025 Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Sat, 4 Jan 2025 09:24:20 +0100 Subject: [PATCH] ci: create a GitHub action which mirrors contents of the repository to SVR.JS Git server --- .github/workflows/main.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..1611e47 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,19 @@ +# Sync repo to the Codeberg mirror +name: Repo sync GitHub -> SVR.JS Git server +on: + push: + branches: + - '**' + +jobs: + svrjsgit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - uses: spyoungtech/mirror-action@v0.5.1 + with: + REMOTE: "https://git.svrjs.org/svrjs/svrouter.git" + GIT_USERNAME: github-mirror + GIT_PASSWORD: ${{ secrets.GIT_PASSWORD }}