-
Notifications
You must be signed in to change notification settings - Fork 54
Expand file tree
/
Copy pathpremarket.yml
More file actions
33 lines (27 loc) · 890 Bytes
/
Copy pathpremarket.yml
File metadata and controls
33 lines (27 loc) · 890 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Premarket Night Session
on:
schedule:
# 台灣時間 08:00 = UTC 00:00(夜盤 05:00 收完、開盤 09:00 前)
- cron: '0 0 * * 1-5'
workflow_dispatch: # 允許手動觸發測試
jobs:
run-premarket:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup uv
uses: astral-sh/setup-uv@v4
with:
python-version: '3.11'
- name: Install deps
run: uv sync
- name: Run premarket report
env:
FINMIND_TOKEN: ${{ secrets.FINMIND_TOKEN }}
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
GOOGLE_SHEET_ID: ${{ secrets.GOOGLE_SHEET_ID }}
GOOGLE_CREDS_JSON: ${{ secrets.GOOGLE_CREDS_JSON }}
run: uv run python premarket.py