Skip to content

Commit 79a5f85

Browse files
Create codeberg-mirror.yml
1 parent f853ffe commit 79a5f85

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Sync repo to the Codeberg mirror
2+
name: Repo sync (GitHub -> Codeberg)
3+
on:
4+
push:
5+
branches:
6+
- '**'
7+
workflow_dispatch: # Manual dispatch
8+
9+
jobs:
10+
sync-repo-to-codeberg:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: "Checkout"
14+
uses: actions/checkout@v2
15+
with:
16+
fetch-depth: 0
17+
- name: "Sync repo"
18+
uses: yesolutions/mirror-action@master
19+
with:
20+
REMOTE: "https://codeberg.org/${{ github.repository }}.git"
21+
GIT_USERNAME: ${{ github.repository_owner }}
22+
GIT_PASSWORD: ${{ secrets.CODEBERG_PASSWORD }}

0 commit comments

Comments
 (0)