We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0ab3e7 commit 700b5d9Copy full SHA for 700b5d9
1 file changed
.github/workflows/mirror.yml
@@ -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
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