Skip to content

Commit

Permalink
ci: make mirror universal
Browse files Browse the repository at this point in the history
  • Loading branch information
Omikorin authored Jan 13, 2025
1 parent f8ec618 commit 7225ca8
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/mirror.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,18 @@ concurrency:
cancel-in-progress: false

jobs:
codeberg:
mirror:
runs-on: ubuntu-latest
strategy:
matrix:
target_host:
- codeberg.org
- git.disroot.org
steps:
- uses: actions/checkout@v4
with:
fetch-depth: '0'
- uses: pixta-dev/repository-mirroring-action@v1
with:
target_repo_url: "git@codeberg.org:Omikorin/usos.git"
ssh_private_key: ${{ secrets.CODEBERG_SSH_KEY }}
target_repo_url: "git@${{ matrix.target_host }}:${{ github.repository }}.git"
ssh_private_key: ${{ secrets.MIRROR_SSH_KEY }}

0 comments on commit 7225ca8

Please sign in to comment.