diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 862494f..0cbad8d 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -21,7 +21,6 @@ jobs: id: execute shell: bash run: | - export PATH="$HOME/.local/bin:$PATH" codex --version MESSAGE=$(codex exec "請你進行自我介紹" 2>/dev/null) { diff --git a/action.yml b/action.yml index d4c2888..db9f8cf 100644 --- a/action.yml +++ b/action.yml @@ -15,7 +15,9 @@ runs: - name: Setup Codex env: CODEX_NON_INTERACTIVE: 1 - run: curl -fsSL https://chatgpt.com/codex/install.sh | sh + run: | + curl -fsSL https://chatgpt.com/codex/install.sh | sh + echo "$HOME/.local/bin" >> "$GITHUB_PATH" shell: bash - name: Login Codex with OAuth env: