Skip to content

Conversation

@Lunarivibe
Copy link
Collaborator

Problem

The weekly-newsletter workflow was failing with error:

claude: command not found
Error: Process completed with exit code 127

Root Cause

The workflow format was incorrect. It tried to:

  • Manually install Node.js and @vm0/cli
  • Run claude setup-token command (which doesn't exist in @vm0/cli)
  • Manually create .env files and run vm0 cook

Solution

Rewrote the workflow to follow the pattern established in daily-data-report.yaml:

  • Use vm0-ai/run-action@v1 instead of manual CLI installation
  • Pass secrets through the action's secrets parameter
  • Simplified from 52 lines to 29 lines
  • Follows the same pattern as other workflows in the repository

Changes

  • ✅ Removed manual Node.js setup
  • ✅ Removed manual CLI installation steps
  • ✅ Removed invalid claude setup-token command
  • ✅ Use vm0-ai/run-action@v1 with proper secrets handling
  • ✅ Added workflow_dispatch inputs for manual triggering

Testing

After merge, the workflow should:

  • Run successfully on schedule (every Friday at 9 AM UTC / 5 PM UTC+8)
  • Be manually triggerable via GitHub Actions UI
  • Generate weekly newsletter and sync to Notion

- Use vm0-ai/run-action@v1 instead of manual CLI installation
- Match format of daily-data-report.yaml
- Simplify workflow with proper secrets handling
- Add workflow_dispatch input for custom prompts

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@Lunarivibe Lunarivibe merged commit 9ac7741 into main Jan 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants