Skip to content

Commit a350bac

Browse files
KingPrimesKingPrimes
authored andcommitted
ci:移除同步到 GitLab 的工作流
- 删除了 sync-gitcode.yml 文件中将代码
1 parent 38ac39d commit a350bac

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

.github/workflows/sync-gitcode.yml

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,6 @@ on:
55
branches:
66
- main
77
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-
298
to_gitcode_com:
309
runs-on: ubuntu-latest
3110
steps:

0 commit comments

Comments
 (0)