From f4129e67484a6710cc898731011ee39b441cf45d Mon Sep 17 00:00:00 2001 From: Sharp-tailed Grouse Date: Tue, 10 Jan 2023 01:52:47 -0500 Subject: [PATCH] Update workflow for mirroring Signed-off-by: Sharp-tailed Grouse --- .github/workflows/mirror.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/mirror.yml diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml new file mode 100644 index 0000000..dadc504 --- /dev/null +++ b/.github/workflows/mirror.yml @@ -0,0 +1,30 @@ +name: Push to Mirrors + +on: [ push, delete, create ] + +# Ensures that only one mirror task will run at a time. +concurrency: + group: git-mirror + +jobs: + gitlab: + runs-on: ubuntu-latest + steps: + - name: Official GitLab Mirror + uses: wearerequired/git-mirror-action@v1 + env: + SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} + with: + source-repo: "git@github.com:Anon-Planet/thgtoa.git" + destination-repo: "git@gitlab.com:anonymousplanetorg/thgtoa.git" + + codeberg: + runs-on: ubuntu-latest + steps: + - name: Official Codeberg Mirror + uses: wearerequired/git-mirror-action@v1 + env: + SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} + with: + source-repo: "git@github.com:Anon-Planet/thgtoa.git" + destination-repo: "git@codeberg.org:anonypla/thgtoa.git" \ No newline at end of file