feat: add digest workflow in github action - #18
Open
Issacwww wants to merge 1 commit into
Open
Conversation
irenelrc
pushed a commit
to irenelrc/follow-builders
that referenced
this pull request
Apr 9, 2026
Add GitHub Actions workflow (digest.yml) and remix script (remix-digest.js) from PR zarazhangrui#18. Runs daily at 8am Eastern, remixes feed via Claude/OpenAI API, delivers to Telegram. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add GitHub Actions digest workflow
Adds a third deployment option: run the full digest pipeline (prepare → LLM remix → deliver) in GitHub Actions, so users don't need a local agent or computer running.
What's new
scripts/remix-digest.js— New script that calls LLM API (Anthropic Claude or OpenAI) using nativefetchto remix feed data into a readable digest. Supports--language,--modelflags. No new npm dependencies..github/workflows/digest.yml— New workflow: daily cron (UTC 7:00) + manual trigger. Gated byDIGEST_FEATURE_FLAGvariable (default unset, so it never runs in upstream).How it works
prepare-digest.jsfetches the central feed JSON (no change to existing script)remix-digest.jsreads the JSON, calls LLM API with the project's prompts to generate summariesdeliver.jssends the digest via Telegram or Email (no change to existing script)For fork users
DIGEST_FEATURE_FLAGtotruein repo VariablesOPENAI_API_KEYorANTHROPIC_API_KEYTELEGRAM_BOT_TOKEN+TELEGRAM_CHAT_IDfor Telegram, orRESEND_API_KEY+DIGEST_EMAILfor EmailDIGEST_LANGUAGE(en/zh/bilingual),DELIVERY_METHOD(telegram/email/stdout),LLM_MODELDesign decisions
fetchonly, no SDK dependencies addedmax_completion_tokensfor OpenAI (compatible with GPT-5.4+),max_tokensfor AnthropicTested
workflow_dispatchon fork, received digest in Telegram (Chinese, GPT-5.4). CI Run