Skip to content

Commit

Permalink
Create mirroring-repository.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Devyatyi9 committed Mar 8, 2024
1 parent 1b3c85f commit 118a61c
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/mirroring-repository.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Mirroring Repository

on: [push, delete, workflow_dispatch]

jobs:
to_gitlab:
runs-on: ubuntu-latest
steps: # <-- must use actions/checkout before mirroring!
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pixta-dev/repository-mirroring-action@v1
with:
target_repo_url:
[email protected]:Devyatyi9/Snowbreak_RU_translation.git
ssh_private_key: # <-- use 'secrets' to pass credential information.
${{ secrets.GITLAB_SSH_PRIVATE_KEY }}

to_codeberg: # <-- different jobs are executed in parallel.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pixta-dev/repository-mirroring-action@v1
with:
target_repo_url:
[email protected]:Devyatyi9/Snowbreak_RU_translation.git
ssh_private_key:
${{ secrets.CODEBERG_SSH_PRIVATE_KEY }}

0 comments on commit 118a61c

Please sign in to comment.