mirror of
https://gitee.com/SuperManito/LinuxMirrors
synced 2026-02-09 07:15:38 +08:00
Update
This commit is contained in:
29
.github/workflows/auto-sync.yml
vendored
Normal file
29
.github/workflows/auto-sync.yml
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
# 通过 Github actions, 在 Github 仓库的每一次 commit 后自动同步到 Gitee 上
|
||||
name: Github > Gitee
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
jobs:
|
||||
repo-sync:
|
||||
env:
|
||||
dst_key: ${{ secrets.GITEE_PRIVATE_KEY }}
|
||||
dst_token: ${{ secrets.GITEE_TOKEN }}
|
||||
gitee_user: ${{ secrets.GITEE_USER }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
- name: sync github -> gitee
|
||||
uses: Yikun/hub-mirror-action@master
|
||||
if: env.dst_key && env.dst_token && env.gitee_user
|
||||
with:
|
||||
|
||||
src: github/SuperManito
|
||||
dst: gitee/SuperManito
|
||||
dst_key: ${{ secrets.GITEE_PRIVATE_KEY }}
|
||||
dst_token: ${{ secrets.GITEE_TOKEN }}
|
||||
static_list: "LinuxMirrors"
|
||||
force_update: true
|
||||
Reference in New Issue
Block a user