Skip to content

Commit 1423962

Browse files
authored
ci: make mirror universal
1 parent 4a5c73a commit 1423962

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/mirror.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,18 @@ concurrency:
1818
cancel-in-progress: false
1919

2020
jobs:
21-
codeberg:
21+
mirror:
2222
runs-on: ubuntu-latest
23+
strategy:
24+
matrix:
25+
target_host:
26+
- codeberg.org
27+
- git.disroot.org
2328
steps:
2429
- uses: actions/checkout@v4
2530
with:
2631
fetch-depth: '0'
2732
- uses: pixta-dev/repository-mirroring-action@v1
2833
with:
29-
target_repo_url: "git@codeberg.org:asi-wroclaw/asi.wroclaw.pl.git"
30-
ssh_private_key: ${{ secrets.CODEBERG_SSH_KEY }}
34+
target_repo_url: "git@${{ matrix.target_host }}:${{ github.repository }}.git"
35+
ssh_private_key: ${{ secrets.MIRROR_SSH_KEY }}

0 commit comments

Comments
 (0)