Skip to content

Commit 5d68266

Browse files
authored
Create codeberg-mirror.yml
1 parent 06a587c commit 5d68266

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Sync repo to the Codeberg mirror
2+
name: Mirror Sync
3+
on:
4+
push:
5+
branches: ["main","master"]
6+
workflow_dispatch: # Manual dispatch
7+
schedule:
8+
- cron: "0 */6 * * *"
9+
jobs:
10+
codeberg:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
with:
15+
fetch-depth: 0
16+
- uses: pixta-dev/repository-mirroring-action@v1
17+
with:
18+
target_repo_url: 'git@codeberg.org:${{ github.repository }}.git'
19+
ssh_private_key: ${{ secrets.CODEBERG_SSH }}

0 commit comments

Comments
 (0)