Skip to content

Commit

Permalink
Create python-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
AFAN-LIFE authored Aug 9, 2024
1 parent 5ef7a1c commit 7b8de6f
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Daily Update Partial Macropage Data

on:
schedule:
- cron: '*/5 * * * *'
push:
branches: [ "main" ]

permissions:
contents: read

jobs:
update_tushare:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.9
uses: actions/setup-python@v3
with:
python-version: "3.9"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: update tushare data
env:
TUSHARE: ${{ secrets.TUSHARE_TOKEN}} # 将TUSHARE密钥传递给环境变量
run: python etl/tushare_etl.py

0 comments on commit 7b8de6f

Please sign in to comment.