Import install-cli-action from op-js

This commit is contained in:
Volodymyr Zotov
2025-07-31 12:24:30 -05:00
parent a10e284f10
commit dfb0f006ee
2 changed files with 1793 additions and 1923 deletions

3711
dist/index.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -1,6 +1,5 @@
import * as core from "@actions/core"; import * as core from "@actions/core";
import { validateCli } from "@1password/op-js"; import { validateCli, installCliOnGithubRunner } from "@1password/op-js";
import { install } from "@1password/install-cli-action/dist-lib/lib";
import { loadSecrets, unsetPrevious, validateAuth } from "./utils"; import { loadSecrets, unsetPrevious, validateAuth } from "./utils";
const loadSecretsAction = async () => { const loadSecretsAction = async () => {
@@ -44,7 +43,7 @@ const installCLI = async (): Promise<void> => {
// If there's no CLI installed, then validateCli will throw an error, which we will use // 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. // as an indicator that we need to execute the installation script.
await validateCli().catch(async () => { await validateCli().catch(async () => {
await install(); await installCliOnGithubRunner();
}); });
}; };