Skip to content

Commit da36352

Browse files
authored
Update GitHub Actions workflow for Codeberg mirroring
1 parent 410c77f commit da36352

File tree

1 file changed

+19
-11
lines changed

1 file changed

+19
-11
lines changed
Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
1-
on: [push]
2-
...
3-
steps:
1+
name: Mirror to Codeberg
42

5-
uses: actions/checkout@v3
6-
with:
7-
fetch-depth: 0
8-
uses: yesolutions/mirror-action@master
9-
with:
10-
REMOTE: 'https://codeberg.org/Bio-OS/bioos.git'
11-
GIT_USERNAME: zhaoqiang_li
12-
GIT_PASSWORD: ${{ secrets.FORCODEBERG }}
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
mirror:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout source repo
11+
uses: actions/checkout@v3
12+
with:
13+
fetch-depth: 0
14+
15+
- name: Mirror code to Codeberg
16+
uses: yesolutions/mirror-action@master
17+
with:
18+
REMOTE: 'https://codeberg.org/Bio-OS/bioos.git'
19+
GIT_USERNAME: zhaoqiang_li
20+
GIT_PASSWORD: ${{ secrets.FORCODEBERG }}

0 commit comments

Comments
 (0)