Update workflow for mirroring

Signed-off-by: Sharp-tailed Grouse <no@anonymousplanet.org>
This commit is contained in:
Than Harrison 2023-01-10 01:52:47 -05:00
parent f10304f695
commit f4129e6748
No known key found for this signature in database
GPG Key ID: B208C4084A2C582D

30
.github/workflows/mirror.yml vendored Normal file
View File

@ -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"