1- # pullfrog workflow for preview testing
2- # reads branch from .branch file and builds action from that branch
1+ # PULLFROG ACTION — DO NOT EDIT EXCEPT WHERE INDICATED
32name : Pullfrog
3+ run-name : ${{ inputs.name || github.workflow }}
44on :
55 workflow_dispatch :
66 inputs :
77 prompt :
88 type : string
99 description : Agent prompt
10+ name :
11+ type : string
12+ description : Run name
1013
1114permissions :
1215 id-token : write
@@ -20,41 +23,17 @@ jobs:
2023 pullfrog :
2124 runs-on : ubuntu-latest
2225 steps :
23- - uses : actions/checkout@v6
24-
25- - name : Read branch
26- id : config
27- run : |
28- if [ -f .branch ]; then
29- echo "branch=$(cat .branch)" >> $GITHUB_OUTPUT
30- else
31- echo "branch=main" >> $GITHUB_OUTPUT
32- fi
33-
34- - name : Checkout pullfrog/app action
26+ - name : Checkout code
3527 uses : actions/checkout@v6
3628 with :
37- repository : pullfrog/app
38- ref : ${{ steps.config.outputs.branch }}
39- path : .pullfrog-action
40- token : ${{ secrets.GH_TOKEN }}
41-
42- - uses : pnpm/action-setup@v4
43- - uses : actions/setup-node@v4
44- with :
45- node-version : " 24"
46-
47- - name : Build action
48- working-directory : .pullfrog-action/action
49- run : |
50- pnpm install --frozen-lockfile --ignore-workspace
51- pnpm build
52-
29+ fetch-depth : 1
5330 - name : Run agent
54- uses : ./. pullfrog-action/action
31+ uses : pullfrog/pullfrog@v0
5532 with :
5633 prompt : ${{ inputs.prompt }}
5734 env :
35+ # add any additional keys your agent(s) need
36+ # optionally, comment out any you won't use
5837 ANTHROPIC_API_KEY : ${{ secrets.ANTHROPIC_API_KEY }}
5938 OPENAI_API_KEY : ${{ secrets.OPENAI_API_KEY }}
6039 GOOGLE_API_KEY : ${{ secrets.GOOGLE_API_KEY }}
6443 GROQ_API_KEY : ${{ secrets.GROQ_API_KEY }}
6544 DEEPSEEK_API_KEY : ${{ secrets.DEEPSEEK_API_KEY }}
6645 OPENROUTER_API_KEY : ${{ secrets.OPENROUTER_API_KEY }}
46+
0 commit comments