mirror of
https://github.com/firmai/financial-machine-learning.git
synced 2026-08-26 09:18:04 +00:00
fix schedule and pull repo when push
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user