We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38ac39d commit a350bacCopy full SHA for a350bac
.github/workflows/sync-gitcode.yml
@@ -5,27 +5,6 @@ on:
5
branches:
6
- main
7
jobs:
8
- to_gitlab:
9
- runs-on: ubuntu-latest
10
- steps:
11
- - uses: actions/checkout@v3
12
- with:
13
- fetch-depth: 0
14
- # 手动配置 Git 并推送
15
- - name: 配置 Git
16
- run: |
17
- git config --global user.name "KingPrimes"
18
- git config --global user.email ${{ secrets.EMAIL }}
19
- # 添加目标仓库远程地址(SSH 或 HTTPS)
20
- git remote add gitlab git@jihulab.com:KingPrimes/DataSource.git
21
- # 导入 SSH 密钥(若使用 SSH)
22
- mkdir -p ~/.ssh
23
- echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
24
- chmod 600 ~/.ssh/id_rsa
25
- ssh-keyscan -H jihulab.com >> ~/.ssh/known_hosts
26
- - name: 推送镜像
27
- run: git push --mirror gitlab
28
-
29
to_gitcode_com:
30
runs-on: ubuntu-latest
31
steps:
0 commit comments