Skip to content

Commit

Permalink
ci: mirroring on different git instance
Browse files Browse the repository at this point in the history
Signed-off-by: Vincenzo Palazzo <[email protected]>
  • Loading branch information
vincenzopalazzo committed Dec 30, 2023
1 parent 0b17902 commit 8a8c8c1
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/mirroring.yml
Original file line number Diff line number Diff line change
@@ -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://[email protected]:222/dev-crew/lampo.rs.git
ssh_private_key: # <-- use 'secrets' to pass credential information.
${{ secrets.SSH_PRIVATE_KEY }}

0 comments on commit 8a8c8c1

Please sign in to comment.