Skip to content

Commit 4600b0a

Browse files
authored
Add GitHub Actions workflow for repository mirroring
1 parent 4813d2b commit 4600b0a

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/mirror.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: 'Mirror'
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: ['**']
7+
tags: ['**']
8+
9+
jobs:
10+
mirror:
11+
name: 'Mirror'
12+
runs-on: ubuntu-latest
13+
timeout-minutes: 5
14+
15+
steps:
16+
- name: 'Checkout'
17+
uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
20+
21+
- name: 'Mirror to Codeberg'
22+
uses: cssnr/mirror-repository-action@v1
23+
with:
24+
#url: https://codeberg.org/cssnr/mirror-repository-action
25+
host: https://codeberg.org
26+
owner: Firee
27+
repo: Object-Workshop
28+
#create: true
29+
username: ${{ secrets.CODEBERG_USERNAME }}
30+
password: ${{ secrets.CODEBERG_TOKEN }}

0 commit comments

Comments
 (0)