name: Run Continue Agent on: workflow_call: inputs: prompt: description: "The prompt to send to the Continue agent" required: true type: string config: description: "The config to use (e.g., continuedev/default-background-agent)" required: false type: string default: "continuedev/default-background-agent" branch_name: description: "The base branch name to work from" required: false type: string default: "main" secrets: CONTINUE_API_KEY: required: true jobs: run-agent: runs-on: ubuntu-latest steps: - name: Call agents endpoint run: | response=$(curl -f -X POST https://api.continue.dev/agents \ -H "Content-Type: application/json" \ -H "Authorization: Bearer ${{ secrets.CONTINUE_API_KEY }}" \ -d '{ "prompt": "${{ inputs.prompt }}", "config": "${{ inputs.config }}", "branchName": "${{ inputs.branch_name }}", "repoUrl": "https://github.com/${{ github.repository }}" }') id=$(echo $response | jq -r '.id') echo "https://hub.continue.dev/agents/$id"