-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (27 loc) · 1.04 KB
/
mirroring-repository.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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 }}