diff --git a/.github/workflows/plugin-install.yml b/.github/workflows/plugin-install.yml index 8217550..86bbd84 100644 --- a/.github/workflows/plugin-install.yml +++ b/.github/workflows/plugin-install.yml @@ -5,6 +5,8 @@ on: branches: [main] pull_request: workflow_dispatch: + schedule: + - cron: '0 1 * * *' permissions: contents: read @@ -17,7 +19,26 @@ jobs: - uses: actions/setup-node@v4 with: node-version: 22 - - run: npm install --global @openai/codex + - name: Resolve Codex CLI version + id: codex-version + run: | + version="$(npm view @openai/codex version)" + if [ -z "$version" ] || [ "$version" = "null" ]; then + echo "Failed to resolve @openai/codex version" >&2 + exit 1 + fi + echo "version=${version}" >> "$GITHUB_OUTPUT" + echo "codex npm version: ${version}" + - name: Install Codex CLI + env: + CODEX_VERSION: ${{ steps.codex-version.outputs.version }} + run: | + npm install --global "@openai/codex@${CODEX_VERSION}" + codex --version + { + echo "codex npm version: ${CODEX_VERSION}" + echo "codex --version: $(codex --version)" + } >> "$GITHUB_STEP_SUMMARY" - name: Install the marketplace and check the bundled skills shell: python run: |