fix(codex): oauth 改回經 inputs.oauth 傳入
composite action 讀不到 secrets context,改回由呼叫端以 with: oauth:
${{ secrets.CODEX_OAUTH }} 經 inputs.oauth 傳入;action 從 inputs.oauth
讀取並保留空值把關,移除 job 層 CODEX_OAUTH env。
This commit is contained in:
@@ -23,11 +23,10 @@ jobs:
|
||||
name: Codex
|
||||
runs-on: ubuntu
|
||||
needs: release-tag-version
|
||||
env:
|
||||
CODEX_OAUTH: ${{ secrets.CODEX_OAUTH }}
|
||||
steps:
|
||||
- name: 測試工具
|
||||
id: codex
|
||||
uses: https://gitea.jsc.idv.tw/composite-actions/codex@v${{ needs.release-tag-version.outputs.version }}
|
||||
with:
|
||||
oauth: ${{ secrets.CODEX_OAUTH }}
|
||||
prompt: "請自我介紹"
|
||||
|
||||
Reference in New Issue
Block a user