⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的 AI 舆情监控助手与热点筛选工具!聚合多平台热点 + RSS 订阅,支持关键词精准筛选。AI 智能筛选新闻 + AI 翻译 + AI 分析简报直推手机,也支持接入 MCP 架构,赋能 AI 自然语言对话分析、情感洞察与趋势预测等。支持 Docker ,数据本地/云端自持。集成微信/飞书/钉钉/Telegram/邮件/ntfy/bark/slack 等渠道智能推送。
Python aibarkdata-analysisdockerhot-newsllmmailmcpmcp-servernewsntfypythonrsstrending-topicswechatwework
fix: 修复硬编码 main 分支导致的兼容性问题
sansan648f8afd8e28
diff --git a/.github/workflows/crawler.yml b/.github/workflows/crawler.ymlindex 3d9a3a5e5c..6d44bb0b66 100644--- a/.github/workflows/crawler.yml+++ b/.github/workflows/crawler.yml@@ -5,7 +5,7 @@ on:workflow_dispatch:concurrency:- group: crawler-main-branch+ group: crawler-${{ github.ref_name }}cancel-in-progress: truepermissions:@@ -20,7 +20,6 @@ jobs:- name: Checkout repositoryuses: actions/checkout@v3with:- ref: mainfetch-depth: 0clean: true@@ -69,18 +68,20 @@ jobs:run: python main.py- name: Commit and push if changes+ env:+ BRANCH_NAME: ${{ github.event.repository.default_branch }}run: |git config --global user.name 'GitHub Actions'git config --global user.email '[email protected]'- echo "🔄 Syncing with remote..."- git fetch origin main+ echo "🔄 Syncing with remote (branch: $BRANCH_NAME)..."+ git fetch origin $BRANCH_NAME# 保存当前更改git stash --include-untracked || echo "Nothing to stash"# 同步到远程最新- git reset --hard origin/main+ git reset --hard origin/$BRANCH_NAME# 恢复本次更改git stash pop || echo "Nothing to pop"@@ -98,11 +99,11 @@ jobs:echo "⬆️ Pushing changes with retry..."for i in {1..5}; do- git pull --rebase origin main && git push origin main && {+ git pull --rebase origin $BRANCH_NAME && git push origin $BRANCH_NAME && {echo "✅ Successfully pushed on attempt $i"exit 0}- echo "⚠️ Attempt $i/$i failed, waiting $((i*3)) seconds..."+ echo "⚠️ Attempt $i failed, waiting $((i*3)) seconds..."sleep $((i * 3))done