Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add organazation to user mirror test #130

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/verify-on-ubuntu-org2user.yml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions hub-mirror/hub.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down