Skip to content

Commit 49b2c3f

Browse files
committed
fix: update git mirror workflow
Signed-off-by: Goetz Goerisch <[email protected]>
1 parent 0611cdf commit 49b2c3f

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.github/workflows/git-mirror.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,14 @@ on:
1212
jobs:
1313
mirror:
1414
runs-on: ubuntu-latest
15-
1615
steps:
1716
- name: Checkout repository
1817
uses: actions/checkout@v4
19-
20-
- name: Mirror to Codeberg
21-
env:
22-
GIT_MIRROR_URL: ${{ secrets.CODEBERG_URL }}
23-
GIT_MIRROR_TOKEN: ${{ secrets.CODEBERG_TOKEN }}
24-
run: |
25-
git remote add mirror ${GIT_MIRROR_URL}
26-
git push --mirror mirror
18+
with:
19+
fetch-depth: 0
20+
- name: "Sync repo"
21+
uses: yesolutions/mirror-action@master
22+
with:
23+
REMOTE: ${{ secrets.CODEBERG_URL }}
24+
GIT_USERNAME: goetz
25+
GIT_PASSWORD: ${{ secrets.CODEBERG_TOKEN }}

0 commit comments

Comments
 (0)