Files
setup-codex/action.yml
T
2026-07-01 06:57:49 +00:00

23 lines
608 B
YAML

name: 'Codex CLI'
description: '安裝 Codex CLI 工具'
author: 'Jeffery'
inputs:
oauth:
description: '透過 OAuth 登入 ChatGPT 產生驗證檔,經過 base64 編碼'
required: true
outputs:
message:
description: '輸出訊息'
value: ${{ steps.exchange.outputs.message }}
runs:
using: 'composite'
steps:
- name: Setup Codex
env:
CODEX_NON_INTERACTIVE: 1
run: curl -fsSL https://chatgpt.com/codex/install.sh | sh
shell: bash
- name: Login Codex with OAuth
env:
OAUTH: ${{ inputs.oauth }}
run: echo $OAUTH | base64 --decode > ~/.codex/auth.json