|
| 1 | +# PULLFROG ACTION — DO NOT EDIT EXCEPT WHERE INDICATED |
| 2 | +name: Pullfrog |
| 3 | +run-name: ${{ inputs.name || github.workflow }} |
| 4 | +on: |
| 5 | + workflow_dispatch: |
| 6 | + inputs: |
| 7 | + prompt: |
| 8 | + type: string |
| 9 | + description: Agent prompt |
| 10 | + name: |
| 11 | + type: string |
| 12 | + description: Run name |
| 13 | + |
| 14 | +permissions: |
| 15 | + contents: read |
| 16 | + |
| 17 | +jobs: |
| 18 | + pullfrog: |
| 19 | + runs-on: ubuntu-latest |
| 20 | + permissions: |
| 21 | + id-token: write |
| 22 | + contents: read |
| 23 | + steps: |
| 24 | + - name: Checkout code |
| 25 | + uses: actions/checkout@v6 |
| 26 | + with: |
| 27 | + fetch-depth: 1 |
| 28 | + - name: Run agent |
| 29 | + uses: pullfrog/pullfrog@v0 |
| 30 | + with: |
| 31 | + prompt: ${{ inputs.prompt }} |
| 32 | + env: |
| 33 | + # add at least one provider API key |
| 34 | + ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} |
| 35 | + CLAUDE_CODE_OAUTH_TOKEN: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} |
| 36 | + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} |
| 37 | + GOOGLE_GENERATIVE_AI_API_KEY: |
| 38 | + ${{ secrets.GOOGLE_GENERATIVE_AI_API_KEY }} |
| 39 | + GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }} |
| 40 | + XAI_API_KEY: ${{ secrets.XAI_API_KEY }} |
| 41 | + DEEPSEEK_API_KEY: ${{ secrets.DEEPSEEK_API_KEY }} |
| 42 | + MOONSHOT_API_KEY: ${{ secrets.MOONSHOT_API_KEY }} |
| 43 | + OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }} |
| 44 | + OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }} |
| 45 | + |
| 46 | + # for Amazon Bedrock (https://docs.pullfrog.com/bedrock) |
| 47 | + # AWS_BEARER_TOKEN_BEDROCK: ${{ secrets.AWS_BEARER_TOKEN_BEDROCK }} |
| 48 | + # AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} |
| 49 | + # AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} |
| 50 | + # AWS_REGION: us-east-1 |
| 51 | + # BEDROCK_MODEL_ID: <bedrock-model-id> |
| 52 | + |
| 53 | + # for Google Vertex AI (https://docs.pullfrog.com/vertex) |
| 54 | + # VERTEX_SERVICE_ACCOUNT_JSON: ${{ secrets.VERTEX_SERVICE_ACCOUNT_JSON }} |
| 55 | + # GOOGLE_CLOUD_PROJECT: my-project |
| 56 | + # VERTEX_LOCATION: global |
| 57 | + # VERTEX_MODEL_ID: <vertex-model-id> |
0 commit comments