Skip to content

Commit ca3f76c

Browse files
authored
Create mirror.yml
1 parent 765508f commit ca3f76c

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

.github/workflows/mirror.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
with:
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

Comments
 (0)