Lightweight coding agent that runs in your terminal
Rust
chore: default to the latest version of the Codex CLI in the GitHub Action (#1485)
Michael Bolinf80fc86f1895
diff --git a/.github/actions/codex/action.yml b/.github/actions/codex/action.ymlindex f0af1cb3e7..404194c00f 100644--- a/.github/actions/codex/action.yml+++ b/.github/actions/codex/action.yml@@ -20,9 +20,9 @@ inputs:description: "Value to use as the CODEX_HOME environment variable when running Codex."required: falsecodex_release_tag:- description: "The release tag of the Codex model to run."+ description: "The release tag of the Codex model to run, e.g., 'rust-v0.3.0'. Defaults to the latest release."required: false- default: "codex-rs-ca8e97fcbcb991e542b8689f2d4eab9d30c399d6-1-rust-v0.0.2505302325"+ default: ""runs:using: "composite"@@ -84,7 +84,10 @@ runs:# we will need to update this action.yml file to match.artifact="codex-exec-${triple}.tar.gz"- gh release download ${{ inputs.codex_release_tag }} --repo openai/codex \+ TAG_ARG="${{ inputs.codex_release_tag }}"+ # The usage is `gh release download [<tag>] [flags]`, so if TAG_ARG+ # is empty, we do not pass it so we can default to the latest release.+ gh release download ${TAG_ARG:+$TAG_ARG} --repo openai/codex \--pattern "$artifact" --output - \| tar xzO > /usr/local/bin/codex-execchmod +x /usr/local/bin/codex-exec