diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 43d1ffd..f4fa008 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -2,7 +2,7 @@ name: Daily Update Partial Macropage Data on: schedule: - - cron: '*/5 * * * *' + - cron: '30 17/0 * * *' push: branches: [ "main" ] diff --git a/etl/tushare_etl.py b/etl/tushare_etl.py index c05d6ca..e4172fb 100644 --- a/etl/tushare_etl.py +++ b/etl/tushare_etl.py @@ -1,7 +1,7 @@ import os import datetime import pandas as pd -import tushare_etl as ts +import tushare as ts end_date = datetime.datetime.now().strftime('%Y%m%d') tushare_token = os.getenv('TUSHARE_TOKEN') # 存储在github的秘钥仓库中,供action每天运行 pro = ts.pro_api(tushare_token)