From 183175cad2ce04c949ca60e4529bc35370632b20 Mon Sep 17 00:00:00 2001 From: longpanda <59477474+ventoy@users.noreply.github.com> Date: Tue, 26 Jan 2021 23:05:37 +0800 Subject: [PATCH] Create sync2gitee.yml --- .github/workflows/sync2gitee.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/sync2gitee.yml diff --git a/.github/workflows/sync2gitee.yml b/.github/workflows/sync2gitee.yml new file mode 100644 index 00000000..ebe6697f --- /dev/null +++ b/.github/workflows/sync2gitee.yml @@ -0,0 +1,26 @@ +name: Mirror GitHub to Gitee + +on: + # Triggers the workflow on push or pull request events but only for the main branch + push: + branches: [ main ] + pull_request: + branches: [ main ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +jobs: + run: + name: Sync-GitHub-to-Gitee + runs-on: ubuntu-latest + steps: + - name: Mirror the Github repos to Gitee. + uses: Yikun/hub-mirror-action@master + with: + src: github/ventoy + dst: gitee/LongPanda + dst_key: ${{ secrets.GITEE_PRIVATE_KEY }} + dst_token: ${{ secrets.GITEE_TOKEN }} + static_list: "Ventoy" + force_update: true