From 8ac550ec76cf2a8f5eb4709aa00a0cd655f2ee69 Mon Sep 17 00:00:00 2001 From: Michael Bolin Date: Wed, 1 Oct 2025 17:00:16 -0700 Subject: [PATCH] drop codex_ prefix from working_directory and output_file inputs --- README.md | 4 ++-- action.yml | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index fa83f03..bb03ff0 100644 --- a/README.md +++ b/README.md @@ -36,10 +36,10 @@ Provide either `prompt` or `prompt_file`; the other may be left empty. The actio | `openai_api_key` | Yes | Secret used to authenticate the helper proxy with OpenAI. Store it in `secrets` and never hardcode it. | — | | `prompt` | Conditionally | Inline prompt text. Provide this or `prompt_file`. | `""` | | `prompt_file` | Conditionally | Path (relative to the repository root) of a file that contains the prompt. Provide this or `prompt`. | `""` | -| `codex_working_directory` | No | Directory passed to `codex exec --cd`. Defaults to the repository root. | `""` | +| `working_directory` | No | Directory passed to `codex exec --cd`. Defaults to the repository root. | `""` | | `codex_version` | No | Version of `@openai/codex` to install. | `0.42.0-alpha.3` | | `codex_args` | No | Extra arguments forwarded to `codex exec`. Accepts JSON arrays (`["--flag", "value"]`) or shell-style strings. | `""` | -| `codex_output_file` | No | File where the final Codex message is written. Leave empty to skip writing a file. | `""` | +| `output_file` | No | File where the final Codex message is written. Leave empty to skip writing a file. | `""` | | `codex_home` | No | Directory to use as the Codex CLI home (config/cache). Uses the CLI default when empty. | `""` | | `safety_strategy` | No | Controls how the action restricts Codex privileges. See [Safety strategy](#safety-strategy). | `drop_sudo` | | `codex_user` | No | Username to run Codex as when `safety_strategy` is `unprivileged_user`. | `""` | diff --git a/action.yml b/action.yml index b703bcf..a8487fe 100644 --- a/action.yml +++ b/action.yml @@ -13,7 +13,7 @@ inputs: openai_api_key: description: "OpenAI API key used by the Codex CLI." required: true - codex_working_directory: + working_directory: description: "Optional working directory to `cd` into before running `codex exec`." required: false default: "" @@ -25,7 +25,7 @@ inputs: description: "Additional args to pass through to `codex exec`. If this value starts with `[`, it will be parsed as a JSON array; otherwise, it will be parsed as a shell-like string." required: false default: "" - codex_output_file: + output_file: description: "File path where the Codex output should be written. Ignored if the empty string." required: false default: "" @@ -171,9 +171,9 @@ runs: CODEX_PROMPT: ${{ inputs.prompt }} CODEX_PROMPT_FILE: ${{ inputs.prompt_file }} CODEX_HOME: ${{ inputs.codex_home }} - CODEX_WORKING_DIRECTORY: ${{ inputs.codex_working_directory || github.workspace }} + CODEX_WORKING_DIRECTORY: ${{ inputs.working_directory || github.workspace }} CODEX_ARGS: ${{ inputs.codex_args }} - CODEX_OUTPUT_FILE: ${{ inputs.codex_output_file }} + CODEX_OUTPUT_FILE: ${{ inputs.output_file }} CODEX_SAFETY_STRATEGY: ${{ inputs.safety_strategy }} CODEX_USER: ${{ inputs.codex_user }} shell: bash