Pullfrog [e4enl] #5
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
| # PULLFROG ACTION — DO NOT EDIT EXCEPT WHERE INDICATED | |
| # reads branch from .branch file and builds action from that branch | |
| # pullfrog-sync: uses=./.pullfrog-action/action | |
| name: Pullfrog | |
| run-name: ${{ inputs.name || github.workflow }} | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| prompt: | |
| type: string | |
| description: Agent prompt | |
| name: | |
| type: string | |
| description: Run name | |
| permissions: | |
| id-token: write | |
| contents: write | |
| pull-requests: write | |
| issues: write | |
| actions: read | |
| checks: read | |
| jobs: | |
| pullfrog: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 1 | |
| # pullfrog-sync: prepare-start | |
| - name: Read branch | |
| id: config | |
| run: | | |
| if [ -f .branch ]; then | |
| echo "branch=$(cat .branch)" >> $GITHUB_OUTPUT | |
| else | |
| echo "branch=main" >> $GITHUB_OUTPUT | |
| fi | |
| - name: Checkout pullfrog/app action | |
| run: | | |
| git clone --depth 1 --branch "${{ steps.config.outputs.branch }}" \ | |
| "https://x-access-token:${{ secrets.GH_TOKEN }}@github.com/pullfrog/app.git" \ | |
| /tmp/pullfrog-app | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '24' | |
| - name: Build action | |
| working-directory: /tmp/pullfrog-app/action | |
| run: | | |
| pnpm install --frozen-lockfile --ignore-workspace | |
| pnpm build | |
| - name: Copy built action to workspace | |
| run: | | |
| mkdir -p .pullfrog-action/action | |
| cp /tmp/pullfrog-app/action/action.yml .pullfrog-action/action/ | |
| cp /tmp/pullfrog-app/action/entry .pullfrog-action/action/ | |
| cp /tmp/pullfrog-app/action/post .pullfrog-action/action/ | |
| # pullfrog-sync: prepare-end | |
| - name: Run agent | |
| uses: ./.pullfrog-action/action | |
| with: | |
| prompt: ${{ inputs.prompt }} | |
| env: | |
| # add any additional keys your agent(s) need | |
| # optionally, comment out any you won't use | |
| ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} | |
| OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
| GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }} | |
| GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }} | |
| CURSOR_API_KEY: ${{ secrets.CURSOR_API_KEY }} | |
| MISTRAL_API_KEY: ${{ secrets.MISTRAL_API_KEY }} | |
| GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }} | |
| DEEPSEEK_API_KEY: ${{ secrets.DEEPSEEK_API_KEY }} | |
| OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }} |