Simple Forge Agent #140
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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' |