mirror of
https://github.com/lan-tianxiang/clone_scripts.git
synced 2025-07-14 08:02:36 +08:00
Update gitee
This commit is contained in:
37
.github/workflows/gitee
vendored
37
.github/workflows/gitee
vendored
@ -1,28 +1,21 @@
|
|||||||
name: sync to gitee
|
name: sync_to_gitee
|
||||||
on:
|
on:
|
||||||
schedule:
|
|
||||||
- cron: '1 0,15 * * *'
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
watch:
|
schedule:
|
||||||
types: started
|
- cron: '*/30 * * * *'
|
||||||
push:
|
|
||||||
branches: [ master ]
|
|
||||||
repository_dispatch:
|
|
||||||
types: sync-LXK9301-scripts
|
|
||||||
jobs:
|
jobs:
|
||||||
repo-sync:
|
sync:
|
||||||
env:
|
|
||||||
dst_key: ${{ secrets.GITEE_PRIVATE_KEY }} # 我自己同步到gitee使用,其他人可忽略
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.event.repository.owner.id == github.event.sender.id
|
if: github.repository == 'lan-tianxiang/clone_scripts'
|
||||||
|
timeout-minutes: 2
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: Sync to Gitee
|
||||||
|
uses: wearerequired/git-mirror-action@master
|
||||||
|
env:
|
||||||
|
# 注意在 Settings->Secrets 配置 GITEE_RSA_PRIVATE_KEY
|
||||||
|
SSH_PRIVATE_KEY: ${{ secrets.GITEE_RSA_PRIVATE_KEY }}
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
# 注意替换为你的 GitHub 源仓库地址
|
||||||
- name: sync github -> gitee
|
source-repo: git@github.com:lan-tianxiang/clone_scripts.git
|
||||||
uses: Yikun/hub-mirror-action@master
|
# 注意替换为你的 Gitee 目标仓库地址
|
||||||
with:
|
destination-repo: git@gitee.com:highdimen/clone_scripts.git
|
||||||
src: github/lan-tianxiang
|
|
||||||
dst: gitee/highdimen
|
|
||||||
dst_key: ${{ secrets.GITEE_PRIVATE_KEY }}
|
|
||||||
dst_token: ${{ secrets.GITEE_TOKEN }}
|
|
||||||
|
Reference in New Issue
Block a user