There was an error while loading. Please reload this page.
1 parent 765508f commit ca3f76cCopy full SHA for ca3f76c
1 file changed
.github/workflows/mirror.yml
@@ -0,0 +1,21 @@
1
+name: Mirror to gitlab
2
+
3
+on:
4
+ push:
5
+ branches: [ main, master ]
6
+ workflow_dispatch:
7
8
+jobs:
9
+ build:
10
+ runs-on: ubuntu-latest
11
12
+ steps: # <-- must use actions/checkout before mirroring!
13
+ - uses: actions/checkout@v3
14
+ with:
15
+ fetch-depth: 0
16
+ - uses: pixta-dev/repository-mirroring-action@v1
17
18
+ target_repo_url:
19
+ ssh://git@git.jmrp.io:${{ secrets.PORT }}/${{ github.repository }}.git
20
+ ssh_private_key: # <-- use 'secrets' to pass credential information.
21
+ ${{ secrets.GITLAB_SSH_PRIVATE_KEY }}
0 commit comments