-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(knifehubpro-sync-to-others.yml): add
- Loading branch information
Showing
1 changed file
with
98 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |