diff --git a/.github/workflows/wiki_gen.yml b/.github/workflows/wiki_gen.yml index da7ca30..b3b40e9 100644 --- a/.github/workflows/wiki_gen.yml +++ b/.github/workflows/wiki_gen.yml @@ -42,6 +42,12 @@ jobs: env: GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.GIT_TOKEN }} + - name: Check out master first + uses: actions/checkout@master + with: + persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token + fetch-depth: 0 # otherwise, you will failed to push refs to dest repo + - name: Commit & Push changes uses: actions-js/push@master with: diff --git a/git_search.py b/git_search.py index 084ff10..cf11320 100644 --- a/git_search.py +++ b/git_search.py @@ -348,5 +348,5 @@ def search_new_repo_by_category_per_day(min_stars_number: int = 100): search_new_repo_and_append(min_stars_number=min_stars_number, filter_list=repo_to_process) -if __name__ == '__main__': - search_new_repo_by_category_per_day(min_stars_number=100) +# if __name__ == '__main__': +# search_new_repo_by_category_per_day(min_stars_number=100) diff --git a/git_util.py b/git_util.py index 20e080f..c94718e 100644 --- a/git_util.py +++ b/git_util.py @@ -61,7 +61,7 @@ def get_repo_attributes_dict(input_repo: Repository, last_commit_within_years: i else: repo_status = 'inactive' result_dict['repo_status'] = repo_status - except GithubException as e: + except Exception as e: print(e) return result_dict