-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (27 loc) · 1.12 KB
/
repo mirroring.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# This is a basic workflow to help you get started with Actions
name: Repo Mirroring
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "to-gitlab"
repo-mirroring:
strategy:
matrix:
repo_url:
- '[email protected]:CXwudi/personal-blog-source.git'
- '[email protected]:cxwudi/personl-blog-related/personal-blog-source.git'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- uses: pixta-dev/repository-mirroring-action@v1
with:
target_repo_url: ${{ matrix.repo_url}}
ssh_private_key: ${{ secrets.GITLAB_PRIVATE_SSH_KEY }} # <-- use 'secrets' to pass credential information.