Skip to content

Commit d8428f7

Browse files
add check out
1 parent cc162ca commit d8428f7

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

Diff for: .github/workflows/wiki_gen.yml

+6
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ jobs:
4242
env:
4343
GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.GIT_TOKEN }}
4444

45+
- name: Check out master first
46+
uses: actions/checkout@master
47+
with:
48+
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
49+
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
50+
4551
- name: Commit & Push changes
4652
uses: actions-js/push@master
4753
with:

Diff for: git_search.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -348,5 +348,5 @@ def search_new_repo_by_category_per_day(min_stars_number: int = 100):
348348
search_new_repo_and_append(min_stars_number=min_stars_number, filter_list=repo_to_process)
349349

350350

351-
if __name__ == '__main__':
352-
search_new_repo_by_category_per_day(min_stars_number=100)
351+
# if __name__ == '__main__':
352+
# search_new_repo_by_category_per_day(min_stars_number=100)

Diff for: git_util.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def get_repo_attributes_dict(input_repo: Repository, last_commit_within_years: i
6161
else:
6262
repo_status = 'inactive'
6363
result_dict['repo_status'] = repo_status
64-
except GithubException as e:
64+
except Exception as e:
6565
print(e)
6666

6767
return result_dict

0 commit comments

Comments
 (0)