From 437fba393d162c2073f928d0f098922db235b13b Mon Sep 17 00:00:00 2001 From: Ilya Prokopenko Date: Fri, 13 Jan 2023 08:50:45 +0700 Subject: [PATCH] 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.). :^) --- .github/workflows/codeberg-mirror.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/codeberg-mirror.yml diff --git a/.github/workflows/codeberg-mirror.yml b/.github/workflows/codeberg-mirror.yml new file mode 100644 index 00000000..c3f762b4 --- /dev/null +++ b/.github/workflows/codeberg-mirror.yml @@ -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 }}