feat(Codex CLI): 新增 Codex CLI Docker Action
This commit is contained in:
+15
-11
@@ -1,20 +1,24 @@
|
||||
name: 'Docker Action Template'
|
||||
description: 'Docker Action 範本'
|
||||
name: 'Codex CLI'
|
||||
description: 'Codex CLI Action'
|
||||
author: 'Jeffery'
|
||||
inputs:
|
||||
runner_token:
|
||||
description: 'Gitea Runner Token'
|
||||
oauth:
|
||||
description: 'Base64 encoded Codex auth.json'
|
||||
required: true
|
||||
text:
|
||||
description: '輸入的文字'
|
||||
default: "Hello, World!"
|
||||
model:
|
||||
description: 'Codex model name'
|
||||
required: true
|
||||
prompt:
|
||||
description: 'Prompt for codex exec'
|
||||
required: false
|
||||
default: '請自我介紹'
|
||||
outputs:
|
||||
text:
|
||||
description: '輸出的文字'
|
||||
description: 'Execution result status'
|
||||
runs:
|
||||
using: 'docker'
|
||||
image: 'Dockerfile'
|
||||
env:
|
||||
GITEA_SERVER_URL: ${{ gitea.server_url }}
|
||||
GITEA_REPOSITORY: ${{ gitea.repository }}
|
||||
RUNNER_TOKEN: ${{ inputs.runner_token || secrets.GITEA_TOKEN || secrets.RUNNER_TOKEN }}
|
||||
OAUTH: ${{ inputs.oauth }}
|
||||
MODEL: ${{ inputs.model }}
|
||||
PROMPT: ${{ inputs.prompt }}
|
||||
|
||||
Reference in New Issue
Block a user