From b9110a4b5bcfcd005d36a76c5e656849d630f4c9 Mon Sep 17 00:00:00 2001 From: Volodymyr Zotov Date: Thu, 14 Aug 2025 10:58:58 -0500 Subject: [PATCH] Rename `version` input to `cli-version` --- action.yml | 2 +- src/index.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index fac55de..601ebf8 100644 --- a/action.yml +++ b/action.yml @@ -11,7 +11,7 @@ inputs: export-env: description: Export the secrets as environment variables default: "false" - version: + cli-version: description: Specify which 1Password CLI version to install. Defaults to "latest". default: "latest" runs: diff --git a/src/index.ts b/src/index.ts index 0bdfaa3..d225e84 100644 --- a/src/index.ts +++ b/src/index.ts @@ -44,7 +44,9 @@ const installCLI = async (): Promise => { // If there's no CLI installed, then validateCli will throw an error, which we will use // as an indicator that we need to execute the installation script. await validateCli().catch(async () => { - await installCliOnGithubActionRunner(); + // defaults to `latest` if not provided + const cliVersion = core.getInput("cli-version"); + await installCliOnGithubActionRunner(cliVersion); }); };