Add initial files
This commit is contained in:
+28
@@ -0,0 +1,28 @@
|
||||
name: Codex Bot
|
||||
description: Run Codex CLI for approved Gitea issue/PR automation
|
||||
|
||||
inputs:
|
||||
gitea-token:
|
||||
required: true
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
# This step assumes this is `node:24-bookworm` container.
|
||||
- name: Install dependencies
|
||||
shell: bash
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install -y --no-install-recommends gettext-base jq
|
||||
npm install -g @openai/codex
|
||||
|
||||
- name: Run Codex Bot
|
||||
shell: bash
|
||||
run: bash "${ACTION_PATH}/scripts/run-codex.sh"
|
||||
env:
|
||||
ACTION_PATH: ${{ gitea.action_path }}
|
||||
GITEA_API_URL: ${{ gitea.api_url }}
|
||||
GITEA_REPOSITORY: ${{ gitea.repository }}
|
||||
GITEA_TOKEN: ${{ inputs.gitea-token }}
|
||||
ISSUE_INDEX: ${{ gitea.event.issue.number }}
|
||||
COMMENT_BODY: ${{ gitea.event.comment.body }}
|
||||
Reference in New Issue
Block a user