-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (28 loc) · 876 Bytes
/
Copy pathagentmeter.yml
File metadata and controls
30 lines (28 loc) · 876 Bytes
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
name: AgentMeter — Track Agent Costs
on:
workflow_run:
workflows:
- "Agent: Code Review"
- "Agent: Turns Test"
types:
- completed
jobs:
track:
runs-on: ubuntu-latest
permissions:
actions: read # required to list jobs and download artifacts
contents: read
issues: write # required to post cost comments
pull-requests: write
steps:
- uses: actions/checkout@v4
- name: Track agent run cost
uses: ./
with:
api_key: ${{ secrets.AGENTMETER_API_KEY }}
api_url: ${{ vars.AGENTMETER_API_URL || 'https://agentmeter.app' }}
engine: claude
model: ${{ vars.GH_AW_MODEL_AGENT_CLAUDE }}
status: ${{ github.event.workflow_run.conclusion }}
workflow_run_id: ${{ github.event.workflow_run.id }}
post_comment: 'true'