- 移除了原有的 Gitea Sync 工作流 - 新增了 Mirroring 工作流,用于同步代码到 GitLab - 使用 yesolutions/mirror-action 实现镜像同步 - 配置了远程仓库地址和认证信息
17 lines
376 B
YAML
17 lines
376 B
YAML
name: Mirroring
|
|
|
|
on: [ push, delete ]
|
|
|
|
jobs:
|
|
to_gitlab:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
- uses: yesolutions/mirror-action@master
|
|
with:
|
|
REMOTE: 'https://git.suyiiyii.top/ssyg/hertz101.git'
|
|
GIT_USERNAME: suyiiyii
|
|
GIT_PASSWORD: ${{ secrets.GITEATOKEN }}
|