From d130035af445ee0586e895d8fba24483cd3631d0 Mon Sep 17 00:00:00 2001 From: mouuii <49775493+mouuii@users.noreply.github.com> Date: Thu, 22 Aug 2024 14:44:29 +0800 Subject: [PATCH] sync workflow --- .github/workflows/Sync-to-gitee.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/Sync-to-gitee.yml diff --git a/.github/workflows/Sync-to-gitee.yml b/.github/workflows/Sync-to-gitee.yml new file mode 100644 index 0000000..887286a --- /dev/null +++ b/.github/workflows/Sync-to-gitee.yml @@ -0,0 +1,24 @@ +name: Sync To Gitee + +on: # 这里是github action的触发条件 + schedule: + - cron: '0 8 * * *' # 每日24点进行同步 + push: + delete: + create: + +jobs: + build: + runs-on: ubuntu-latest + steps: + + - name: Sync yourreponame to Gitee + uses: wearerequired/git-mirror-action@master + env: + # 注意在 Settings->Secrets 配置 GITEE_RSA_PRIVATE_KEY + SSH_PRIVATE_KEY: ${{ secrets.GITEE_RSA_PRIVATE_KEY }} + with: + # 注意替换为你的 GitHub 源仓库地址 + source-repo: git@github.com:cit965/k8s-learning.git + # 注意替换为你的 Gitee 目标仓库地址 + destination-repo: git@gitee.com:mouuii/k8s-learning.git