From 92219f74a308117352370a6f9174f07c29f65004 Mon Sep 17 00:00:00 2001 From: Vincenzo Palazzo Date: Sat, 30 Dec 2023 16:29:47 +0100 Subject: [PATCH] ci: mirroring on different git instance Signed-off-by: Vincenzo Palazzo --- .github/workflows/mirroring.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/mirroring.yml diff --git a/.github/workflows/mirroring.yml b/.github/workflows/mirroring.yml new file mode 100644 index 00000000..4dc04c8f --- /dev/null +++ b/.github/workflows/mirroring.yml @@ -0,0 +1,21 @@ +name: Git Mirroring + +on: + push: + branches: [main] + delete: + branches: [main] + +jobs: + to_codeberg: + runs-on: ubuntu-latest + steps: # <-- must use actions/checkout before mirroring! + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - uses: pixta-dev/repository-mirroring-action@v1 + with: + target_repo_url: + ssh://git@ssh.hedwing.dev:222/dev-crew/lampo.rs.git + ssh_private_key: # <-- use 'secrets' to pass credential information. + ${{ secrets.SSH_PRIVATE_KEY }}