Skip to content

Sync Mirror

Sync Mirror #18

Workflow file for this run

name: Sync Mirror
on:
push:
branches: ['main']
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
schedule:
- cron: '0 0 * * *' # at the end of the day
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these mirror deployments to complete.
concurrency:
group: 'mirror'
cancel-in-progress: false
jobs:
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@${{ matrix.target_host }}:${{ github.repository }}.git"
ssh_private_key: ${{ secrets.MIRROR_SSH_KEY }}