Skip to content

Conversation

@pullfrog
Copy link

@pullfrog pullfrog bot commented Jan 13, 2026

Overview

This PR adds automation scripts to update pullfrog.yml workflow files across all repositories in the pullfrog organization.

Related to #21 which introduced breaking changes requiring workflow file updates.

What's Included

Scripts

  1. scripts/update-workflows.sh (Bash)

    • Primary script, works on any Unix-like system
    • Requires: gh CLI, jq
  2. scripts/update-workflows.mjs (Node.js)

    • Alternative for Node.js environments
    • Requires: Node.js 18+, gh CLI
  3. scripts/README.md

    • Complete documentation
    • Usage examples
    • Troubleshooting guide

Features

  • 🔍 Auto-discovers all repos in the pullfrog org with pullfrog.yml workflows
  • 🌿 Creates feature branches (pullfrog/update-workflow-template)
  • ✏️ Updates workflow files to new template format
  • 📬 Creates PRs automatically with detailed descriptions
  • 🧪 Supports --dry-run mode to preview changes

Usage

# Preview what would be updated
./scripts/update-workflows.sh --dry-run

# Create PRs across all repos
./scripts/update-workflows.sh

New Template

Updates workflows to use environment variables for API keys:

- name: Run agent
  uses: pullfrog/action@v0
  with:
    prompt: \${{ inputs.prompt }}
  env:
    ANTHROPIC_API_KEY: \${{ secrets.ANTHROPIC_API_KEY }}
    OPENAI_API_KEY: \${{ secrets.OPENAI_API_KEY }}
    # ... other API keys

Testing

Scripts are ready to run. Recommend starting with --dry-run to verify which repos would be affected before creating PRs.

Related

Addresses the migration workflow described in #21

Pullfrog  | Triggered by Pullfrog | Using Claude CodeView workflow runpullfrog.com𝕏

Adds automation scripts to update workflow files across all pullfrog org
repositories to the new template format with env-based API keys.

Includes:
- Node.js script (update-workflows.mjs)
- Bash script (update-workflows.sh)
- Documentation (README.md)

These scripts automate the migration process described in PR #21 by:
- Discovering all repos with pullfrog.yml workflows
- Creating branches and updating workflow files
- Creating PRs for each repo

Supports dry-run mode for testing before making changes.
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