-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (29 loc) · 953 Bytes
/
mirror.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
31
32
33
34
35
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 }}