-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaction.yml
More file actions
58 lines (51 loc) · 1.63 KB
/
action.yml
File metadata and controls
58 lines (51 loc) · 1.63 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
name: 'Augment Action'
description: 'GitHub Action that runs the Auggie AI agent to assist with code tasks'
author: 'Augment Code'
branding:
icon: 'zap'
color: 'purple'
inputs:
prompt:
description: 'The prompt to send to Auggie agent'
required: true
augment_api_key:
description: 'Augment API key for authentication'
required: false
augment_api_url:
description: 'Augment API URL'
required: false
default: 'https://api.augmentcode.com'
workspace_root:
description: 'Workspace root path for Auggie to index (defaults to current directory)'
required: false
outputs:
success:
description: 'Whether the reaction was successfully added'
value: ${{ steps.auggie.outputs.success }}
runs:
using: 'composite'
steps:
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install Auggie CLI
run: bun install -g @augmentcode/auggie
shell: bash
- name: Install Action Dependencies
run: bun install --production
shell: bash
working-directory: ${{ github.action_path }}
- name: Run Auggie
id: auggie
run: bun run ${{ github.action_path }}/src/index.ts
shell: bash
env:
INPUT_PROMPT: ${{ inputs.prompt }}
INPUT_AUGMENT_API_KEY: ${{ inputs.augment_api_key }}
INPUT_AUGMENT_API_URL: ${{ inputs.augment_api_url }}
INPUT_WORKSPACE_ROOT: ${{ inputs.workspace_root }}
GITHUB_REPOSITORY: ${{ github.repository }}
GITHUB_EVENT_NAME: ${{ github.event_name }}
GITHUB_STEP_SUMMARY: ${{ env.GITHUB_STEP_SUMMARY }}
GITHUB_TOKEN: ${{ github.token }}