Skip to content
Closed
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions .github/workflows/daily_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: 每日股票分析
on:
# 定时触发 - 每天北京时间 18:00 (UTC 10:00)
schedule:
- cron: '0 10 * * 1-5' # 周一到周五,UTC 10:00 = 北京时间 18:00
- cron: '5 7 * * 1-5' # 周一到周五,UTC 10:00 = 北京时间 18:00

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Restore cron to intended 18:00 Beijing trigger

This updates the schedule from 0 10 * * 1-5 to 5 7 * * 1-5, which GitHub Actions interprets in UTC, so the workflow now runs at 15:05 Beijing instead of the documented 18:00. The same file still states "UTC 10:00 = 北京时间 18:00", so this is a behavior regression for all weekday automatic runs and can send reports before the expected post-market window. If this was intentional, comments/docs need to be updated together; otherwise the cron should remain at 10:00 UTC.

Useful? React with 👍 / 👎.


# 手动触发
workflow_dispatch:
Expand Down Expand Up @@ -32,7 +32,7 @@ jobs:
analyze:
runs-on: ubuntu-latest
# 添加超时限制,防止任务卡死
timeout-minutes: 30
timeout-minutes: 60

steps:
- name: 随机延迟(避免固定时间访问)
Expand Down Expand Up @@ -66,7 +66,8 @@ jobs:
LITELLM_CONFIG_YAML: ${{ vars.LITELLM_CONFIG_YAML || secrets.LITELLM_CONFIG_YAML }}
LITELLM_API_KEY: ${{ secrets.LITELLM_API_KEY }}
LITELLM_MODEL: ${{ vars.LITELLM_MODEL || secrets.LITELLM_MODEL }}

# LITELLM_LOG: ${{ vars.LITELLM_LOG }}

# Gemini AI(主选)
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
GEMINI_MODEL: ${{ vars.GEMINI_MODEL || secrets.GEMINI_MODEL || 'gemini-3-flash-preview' }}
Expand All @@ -81,6 +82,13 @@ jobs:
OPENAI_BASE_URL: ${{ vars.OPENAI_BASE_URL || secrets.OPENAI_BASE_URL }}
OPENAI_MODEL: ${{ vars.OPENAI_MODEL || secrets.OPENAI_MODEL }}

# 自定义 API:
LLM_CHANNELS: ${{ secrets.LLM_CHANNELS }}
LLM_MY_PROXY_API_KEY: ${{ secrets.LLM_MY_PROXY_API_KEY }}
LLM_MY_PROXY_BASE_URL: ${{ secrets.LLM_MY_PROXY_BASE_URL }}
LLM_MY_PROXY_MODELS: ${{ secrets.LLM_MY_PROXY_MODELS }}
LLM_MY_PROXY_PROTOCOL: ${{ secrets.LLM_MY_PROXY_PROTOCOL }}

# Anthropic / Claude
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
ANTHROPIC_MODEL: ${{ vars.ANTHROPIC_MODEL || secrets.ANTHROPIC_MODEL || 'claude-3-5-sonnet-20241022' }}
Expand Down