Parcourir la source

[Actions]Add workflow.

dufu1991 il y a 3 ans
Parent
commit
6f1a23549c
1 fichiers modifiés avec 27 ajouts et 0 suppressions
  1. 27 0
      .github/workflows/sync-gitee.yml

+ 27 - 0
.github/workflows/sync-gitee.yml

@@ -0,0 +1,27 @@
+# 北京时间每天 9 点自动将 GitHub 仓库同步到 Gitee
+
+name: SYNC GITEE
+
+on:
+    schedule:
+        - cron: '0 1 * * *'
+
+jobs:
+    build:
+    runs-on: ubuntu-latest
+    steps:
+        - name: Mirror the Github repository to Gitee
+          uses: Yikun/gitee-mirror-action@master
+
+
+        - name: Black list
+          uses: Yikun/hub-mirror-action@master
+          with:
+            src: github/dufu1991
+            dst: gitee/dufu1991
+            dst_key: ${{ secrets.GITEE_PRIVATE_KEY }}
+            dst_token: ${{ secrets.GITEE_TOKEN }}
+            static_list: "stdf"
+
+
+