-
Notifications
You must be signed in to change notification settings - Fork 1
73 lines (68 loc) · 2.46 KB
/
simple-forge.yml
File metadata and controls
73 lines (68 loc) · 2.46 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
name: Simple Forge Agent
on:
workflow_dispatch:
inputs:
job_id:
description: 'Job ID from the queue'
required: true
type: string
issue_id:
description: 'GitHub issue ID'
required: true
type: string
branch:
description: 'Target branch for changes'
required: true
type: string
service_url:
description: 'Simple Forge service URL'
required: true
type: string
default: 'https://forge.simple-container.com'
model_name:
description: 'Claude model to use for generation'
required: false
default: 'claude-sonnet-4-5'
script_version:
description: 'Script version to use'
required: false
type: string
default: 'latest'
api_token:
description: 'JWT token for both AI gateway and forge service API access'
required: false
type: string
anthropic_base_url:
description: 'Anthropic API base URL (overrides secrets if provided)'
required: false
type: string
jobs:
generate-code:
runs-on: blacksmith-8vcpu-ubuntu-2204
timeout-minutes: 60
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
fetch-depth: 0
- name: Setup Go with Blacksmith Cache
uses: useblacksmith/setup-go@v6
with:
go-version: '1.25'
- name: Install welder
run: curl -s "https://welder.simple-container.com/welder.sh" | bash
- name: Run Simple Forge
uses: simple-container-com/forge-action/.github/actions/dockerless@v1
with:
job_id: ${{ inputs.job_id }}
issue_id: ${{ inputs.issue_id }}
service_url: "${{ inputs.service_url || 'https://forge.simple-container.com' }}"
model_name: ${{ inputs.model_name }}
branch: ${{ inputs.branch }}
anthropic_api_key: ${{ inputs.api_token || secrets.ANTHROPIC_API_KEY }}
anthropic_base_url: ${{ inputs.anthropic_base_url || secrets.ANTHROPIC_BASE_URL || format('{0}/ai', inputs.service_url || 'https://forge.simple-container.com') || 'https://api.anthropic.com' }}
simple_forge_api_key: ${{ inputs.api_token || secrets.SIMPLE_FORGE_API_KEY }}
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
script_version: ${{ inputs.script_version }}
skip_dependency_install: 'false'