hertz101/.github/workflows/mirror.yaml
suyiiyii e98b619fb1
ci: 更新镜像同步工作流
- 移除了原有的 Gitea Sync 工作流
- 新增了 Mirroring 工作流,用于同步代码到 GitLab
- 使用 yesolutions/mirror-action 实现镜像同步
- 配置了远程仓库地址和认证信息
2025-01-20 12:00:13 +08:00

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 }}