更新 action.yml

This commit is contained in:
2026-07-01 06:57:49 +00:00
parent 5e2c0853a0
commit b16e7ec0aa
+12 -11
View File
@@ -1,11 +1,10 @@
name: 'Gitea Composite Template' name: 'Codex CLI'
description: 'Gitea Composite 範本' description: '安裝 Codex CLI 工具'
author: 'Jeffery' author: 'Jeffery'
inputs: inputs:
message: oauth:
description: '輸入訊息' description: '透過 OAuth 登入 ChatGPT 產生驗證檔,經過 base64 編碼'
required: false required: true
default: 'Hello, World!'
outputs: outputs:
message: message:
description: '輸出訊息' description: '輸出訊息'
@@ -13,10 +12,12 @@ outputs:
runs: runs:
using: 'composite' using: 'composite'
steps: steps:
- name: Exchange - name: Setup Codex
id: exchange
env: env:
MESSAGE: ${{ inputs.message }} CODEX_NON_INTERACTIVE: 1
run: | run: curl -fsSL https://chatgpt.com/codex/install.sh | sh
echo "message=$MESSAGE" >> "$GITHUB_OUTPUT"
shell: bash shell: bash
- name: Login Codex with OAuth
env:
OAUTH: ${{ inputs.oauth }}
run: echo $OAUTH | base64 --decode > ~/.codex/auth.json