fix schedule and pull repo when push

This commit is contained in:
Bin Yang
2021-04-12 12:36:30 -04:00
parent d3c7d0b1a0
commit 41d5b481a9
3 changed files with 10 additions and 7 deletions
+3 -6
View File
@@ -1,12 +1,9 @@
name: Repo-Updater name: Repo-Updater
# cron every sunday at 12 am, due to github api limits, change this to be ran once a week on:
#on: schedule:
# schedule: - cron: '0 0 * * *' # do every hour for now
# - cron: '0 0 * * *' # do every hour for now
# generate wiki page on every push
on: push
jobs: jobs:
# Set the job key. The key is displayed as the job name # Set the job key. The key is displayed as the job name
+6
View File
@@ -26,6 +26,12 @@ jobs:
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: execute py script # run the run.py to get the latest data - name: execute py script # run the run.py to get the latest data
run: |
python git_status.py
env:
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
- name: execute py script # run the wiki_gen
run: | run: |
python wiki_gen.py python wiki_gen.py
+1 -1
View File
@@ -319,5 +319,5 @@ def parse_readme_md():
if __name__ == '__main__': if __name__ == '__main__':
# get_repo_status() get_repo_status()
search_new_repo_and_append(min_stars_number=100) search_new_repo_and_append(min_stars_number=100)