Skip to content

Commit 700b5d9

Browse files
authored
Create mirror.yml
1 parent d0ab3e7 commit 700b5d9

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

.github/workflows/mirror.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Mirror to Codeberg
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
- cron: '30 0 * * 0'
6+
push:
7+
branches: [main]
8+
jobs:
9+
codeberg:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 0
15+
- name: Configure Git
16+
run: |
17+
git config --global user.name "GitHub Actions"
18+
git config --global user.email "actions@github.com"
19+
- name: Mirror repository
20+
run: |
21+
git remote add codeberg https://gl0bal01:${{ secrets.CODEBERG_TOKEN }}@codeberg.org/gl0bal01/wp-quick-dev.git || true
22+
git push codeberg --all --force
23+
git push codeberg --tags --force

0 commit comments

Comments
 (0)