drop codex_ prefix from working_directory and output_file inputs

This commit is contained in:
Michael Bolin
2025-10-01 17:00:16 -07:00
parent 151b435219
commit 8ac550ec76
2 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -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`. | `""` |
+4 -4
View File
@@ -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