Add an action for proper repository mirroring

Do roughly the same with your repositories if you have exactly the same
copies of the repositories on other forges (GitLab, Codeberg, etc.).

:^)
This commit is contained in:
Ilya Prokopenko 2023-01-13 08:50:45 +07:00
parent e492f89327
commit 437fba393d
No known key found for this signature in database
GPG key ID: 7736BBBB05F14A56

17
.github/workflows/codeberg-mirror.yml vendored Normal file
View file

@ -0,0 +1,17 @@
name: Codeberg Mirroring
on:
push:
branches: ["master"]
jobs:
to_codeberg:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: pixta-dev/repository-mirroring-action@v1
with:
target_repo_url: "git@codeberg.org:openvk/openvk.git"
ssh_private_key: ${{ secrets.CODEBERG_PRIVSSH }}