ETF Analysis #148
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ETF Analysis | |
on: | |
schedule: | |
# 每天台灣時間 09:30 運行 (UTC+8) | |
# 注意: GitHub Actions 使用 UTC 時間,所以需要調整 | |
- cron: "0 1 * * 1-5" # UTC 01:00 (台灣時間 9:00), 週一到週五 | |
workflow_dispatch: # 保留手動觸發選項 | |
jobs: | |
send_notification: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.x" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Run analysis | |
env: | |
LINE_CHANNEL_ACCESS_TOKEN: ${{ secrets.LINE_CHANNEL_ACCESS_TOKEN }} | |
LINE_USER_ID: ${{ secrets.LINE_USER_ID }} | |
run: python etf_analysis.py |