Add Claude
This commit is contained in:
+14
-6
@@ -1,9 +1,16 @@
|
||||
name: Codex Bot
|
||||
description: Run Codex CLI for approved Gitea issue/PR automation
|
||||
name: Bot agents
|
||||
description: Run a coding agent for approved Gitea issue/PR automation
|
||||
|
||||
inputs:
|
||||
gitea-token:
|
||||
bot-type:
|
||||
description: Which bot to run, either `codex` or `claude`
|
||||
required: true
|
||||
gitea-token:
|
||||
description: Gitea access token for API calls and pushes
|
||||
required: true
|
||||
bot-token:
|
||||
description: API key or token for the selected bot
|
||||
required: false
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
@@ -14,15 +21,16 @@ runs:
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install -y --no-install-recommends gettext-base jq ansifilter
|
||||
npm install -g @openai/codex
|
||||
- name: Run Codex
|
||||
npm install -g @openai/codex @anthropic-ai/claude-code
|
||||
- name: Run bot
|
||||
shell: bash
|
||||
run: bash "${ACTION_PATH}/scripts/run-codex.sh"
|
||||
run: bash "${ACTION_PATH}/scripts/run-${{ inputs.bot-type }}.sh"
|
||||
env:
|
||||
ACTION_PATH: ${{ gitea.action_path }}
|
||||
GITEA_API_URL: ${{ gitea.api_url }}
|
||||
GITEA_REPOSITORY: ${{ gitea.repository }}
|
||||
GITEA_TOKEN: ${{ inputs.gitea-token }}
|
||||
BOT_TOKEN: ${{ inputs.bot-token }}
|
||||
EVENT_NAME: ${{ gitea.event_name }}
|
||||
ISSUE_INDEX: ${{ gitea.event.issue.number || gitea.event.pull_request.number }}
|
||||
COMMENT: ${{ toJSON(gitea.event.comment || gitea.event.review) }}
|
||||
|
||||
Reference in New Issue
Block a user