feat(codex): 新增 Codex CLI composite action #1

Merged
admin merged 15 commits from ai-review-resolve/develop-20260629-115924 into develop 2026-06-29 06:17:23 +00:00
Showing only changes of commit 03d082d0f3 - Show all commits
-8
View File
@@ -36,17 +36,12 @@ runs:
id: codex
env:
MODEL: ${{ vars.CODEX_MODEL }}
EXPECTED_EMAIL: ${{ vars.CODEX_EMAIL }}
PROMPT: ${{ inputs.prompt }}
run: |
if [ -z "$MODEL" ]; then
echo 'CODEX_MODEL repository variable is required.' >&2
exit 1
fi
if [ -z "$EXPECTED_EMAIL" ]; then
echo 'CODEX_EMAIL repository variable is required.' >&2
exit 1
fi
if [ -z "$PROMPT" ]; then
email="$(python3 "$GITHUB_ACTION_PATH/app/codex_account.py")"
echo "text=$email" >> "$GITHUB_OUTPUT"
@@ -60,6 +55,3 @@ runs:
echo 'CODEX_OUTPUT'
} >> "$GITHUB_OUTPUT"
shell: bash
- name: 檢查輸出
if: ${{ steps.codex.outputs.text != vars.ANTIGRAVITY_EMAIL }}
run: exit 1