From 223e2b3d4217fa36913b27c49cd81abffd8301be Mon Sep 17 00:00:00 2001 From: Yikun Jiang Date: Mon, 13 Dec 2021 14:50:07 +0800 Subject: [PATCH 1/2] Add organazation to user mirror test --- .../workflows/verify-on-ubuntu-org2user.yml | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/verify-on-ubuntu-org2user.yml diff --git a/.github/workflows/verify-on-ubuntu-org2user.yml b/.github/workflows/verify-on-ubuntu-org2user.yml new file mode 100644 index 00000000..afc46e15 --- /dev/null +++ b/.github/workflows/verify-on-ubuntu-org2user.yml @@ -0,0 +1,23 @@ +on: pull_request +name: Tests / test-org-mirror +jobs: + run: + name: Run + runs-on: ubuntu-latest + steps: + - name: Checkout source code + uses: actions/checkout@v1 + - name: Mirror Github to Gitee + uses: ./. + with: + src: github/hub-mirror-action + dst: gitee/yikunkero + dst_key: ${{ secrets.GITEE_PRIVATE_KEY }} + dst_token: ${{ secrets.GITEE_TOKEN }} + src_account_type: org + dst_account_type: user + # Only sync normal repo + black_list: 'test' + white_list: 'normal,test,empty' + force_update: true + debug: true From 74bfac94727941b2107c5ebc59745d1436df5e99 Mon Sep 17 00:00:00 2001 From: Yikun Jiang Date: Mon, 13 Dec 2021 15:18:23 +0800 Subject: [PATCH 2/2] Update hub.py --- hub-mirror/hub.py | 1 + 1 file changed, 1 insertion(+) diff --git a/hub-mirror/hub.py b/hub-mirror/hub.py index b88bad3c..b54e3f56 100644 --- a/hub-mirror/hub.py +++ b/hub-mirror/hub.py @@ -46,6 +46,7 @@ def has_dst_repo(self, repo_name): ] ) repo_names = self._get_all_repo_names(url) + print("DST: " + url + ", " + str(repo_names)) if not repo_names: print("Warning: destination repos is []") return False