]> glassweightruler.freedombox.rocks Git - Ventoy.git/commitdiff
Create sync2gitee.yml
authorlongpanda <59477474+ventoy@users.noreply.github.com>
Tue, 26 Jan 2021 15:05:37 +0000 (23:05 +0800)
committerGitHub <noreply@github.com>
Tue, 26 Jan 2021 15:05:37 +0000 (23:05 +0800)
.github/workflows/sync2gitee.yml [new file with mode: 0644]

diff --git a/.github/workflows/sync2gitee.yml b/.github/workflows/sync2gitee.yml
new file mode 100644 (file)
index 0000000..ebe6697
--- /dev/null
@@ -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