Skip to content

Commit

Permalink
ci(knifehubpro-sync-to-others.yml): add
Browse files Browse the repository at this point in the history
  • Loading branch information
yiyungent committed Feb 22, 2024
1 parent a053595 commit 5e6e78f
Showing 1 changed file with 98 additions and 0 deletions.
98 changes: 98 additions & 0 deletions .github/workflows/KnifeHubPro-sync-to-others.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
name: KnifeHubPro - Sync to Others

on:
workflow_dispatch: # Run workflow manually (without waiting for the cron to be called), through the Github Actions Workflow page directly
schedule: # Run workflow automatically
- cron: "0 * * * *" # 每 1 h 运行一次

jobs:
# https://gitee.com/yiyungent
sync-to-gitee:
runs-on: ubuntu-latest
steps:
- name: Sync to Gitee
uses: wearerequired/git-mirror-action@master
env:
# 在 Settings->Secrets 配置 SYNC_TO_OTHERS_SSH_PRIVATE_KEY
SSH_PRIVATE_KEY: ${{ secrets.SYNC_TO_OTHERS_SSH_PRIVATE_KEY }}
with:
# 源仓库地址
source-repo: [email protected]:yiyungent/KnifeHubPro.git
# 目标仓库地址
destination-repo: [email protected]:yiyungent/KnifeHubPro.git

# https://bitbucket.org/yiyungent/
sync-to-bitbucket:
runs-on: ubuntu-latest
steps:
- name: Sync to Bitbucket
uses: wearerequired/git-mirror-action@master
env:
# 在 Settings->Secrets 配置 SYNC_TO_OTHERS_SSH_PRIVATE_KEY
SSH_PRIVATE_KEY: ${{ secrets.SYNC_TO_OTHERS_SSH_PRIVATE_KEY }}
with:
# 源仓库地址
source-repo: [email protected]:yiyungent/KnifeHubPro.git
# 目标仓库地址
destination-repo: [email protected]:yiyungent/KnifeHubPro.git

# https://gitea.moeci.com/yiyungent
sync-to-gitea:
runs-on: ubuntu-latest
steps:
- name: Sync to Gitea
uses: wearerequired/git-mirror-action@master
env:
# 在 Settings->Secrets 配置 SYNC_TO_OTHERS_SSH_PRIVATE_KEY
SSH_PRIVATE_KEY: ${{ secrets.SYNC_TO_OTHERS_SSH_PRIVATE_KEY }}
with:
# 源仓库地址
source-repo: [email protected]:yiyungent/KnifeHubPro.git
# 目标仓库地址
destination-repo: [email protected]:yiyungent/KnifeHubPro.git

# https://gitlab.com/yiyungent
sync-to-gitlab:
runs-on: ubuntu-latest
steps:
- name: Sync to GitLab
uses: wearerequired/git-mirror-action@master
env:
# 在 Settings->Secrets 配置 SYNC_TO_OTHERS_SSH_PRIVATE_KEY
SSH_PRIVATE_KEY: ${{ secrets.SYNC_TO_OTHERS_SSH_PRIVATE_KEY }}
with:
# 源仓库地址
source-repo: [email protected]:yiyungent/KnifeHubPro.git
# 目标仓库地址
destination-repo: [email protected]:yiyungent/KnifeHubPro.git

# https://yiyungent.coding.net/user/projects
sync-to-coding:
runs-on: ubuntu-latest
steps:
- name: Sync to Coding
uses: wearerequired/git-mirror-action@master
env:
# 在 Settings->Secrets 配置 SYNC_TO_OTHERS_SSH_PRIVATE_KEY
SSH_PRIVATE_KEY: ${{ secrets.SYNC_TO_OTHERS_SSH_PRIVATE_KEY }}
with:
# 源仓库地址
source-repo: [email protected]:yiyungent/KnifeHubPro.git
# 目标仓库地址
destination-repo: [email protected]:yiyungent/yiyungent/KnifeHubPro.git

# 阿里云云效 Codeup
# https://codeup.aliyun.com/
sync-to-codeup:
runs-on: ubuntu-latest
steps:
- name: Sync to Codeup
uses: wearerequired/git-mirror-action@master
env:
# 在 Settings->Secrets 配置 SYNC_TO_OTHERS_SSH_PRIVATE_KEY
SSH_PRIVATE_KEY: ${{ secrets.SYNC_TO_OTHERS_SSH_PRIVATE_KEY }}
with:
# 源仓库地址
source-repo: [email protected]:yiyungent/KnifeHubPro.git
# 目标仓库地址
destination-repo: [email protected]:651d0e808c5fee586761b459/yiyungent/KnifeHubPro.git

0 comments on commit 5e6e78f

Please sign in to comment.