-
Notifications
You must be signed in to change notification settings - Fork 0
99 lines (89 loc) · 3.08 KB
/
pullfrog.yml
File metadata and controls
99 lines (89 loc) · 3.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# 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: Get installation token
id: token
uses: pullfrog/pullfrog/get-installation-token@main
with:
repos: app
- 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: |
for i in 1 2 3; do
git clone --depth 1 --branch "${{ steps.config.outputs.branch }}" \
"https://x-access-token:${{ steps.token.outputs.token }}@github.com/pullfrog/app.git" \
/tmp/pullfrog-app && break
echo "Clone attempt $i failed, retrying in 5s..."
sleep 5
done
echo "Checked out pullfrog/app at $(git -C /tmp/pullfrog-app rev-parse HEAD)"
- 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
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:
API_URL: ${{ secrets.API_URL }}
VERCEL_AUTOMATION_BYPASS_SECRET: ${{ secrets.VERCEL_AUTOMATION_BYPASS_SECRET }}
# 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 }}