add check out

This commit is contained in:
Bin Yang
2021-10-26 01:14:04 -04:00
parent cc162caf46
commit d8428f7264
3 changed files with 9 additions and 3 deletions
+6
View File
@@ -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:
+2 -2
View File
@@ -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)
+1 -1
View File
@@ -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