mirror of
https://github.com/Anon-Planet/thgtoa.git
synced 2025-01-12 15:59:47 -05:00
Update workflow for mirroring
Signed-off-by: Sharp-tailed Grouse <no@anonymousplanet.org>
This commit is contained in:
parent
f10304f695
commit
f4129e6748
30
.github/workflows/mirror.yml
vendored
Normal file
30
.github/workflows/mirror.yml
vendored
Normal 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"
|
Loading…
Reference in New Issue
Block a user