Use install-cli-action from other branch

This commit is contained in:
Volodymyr Zotov
2025-07-31 12:01:35 -05:00
parent 54f4c31d4e
commit a10e284f10
4 changed files with 49 additions and 33170 deletions

View File

@@ -1,5 +1,6 @@
import * as core from "@actions/core";
import { validateCli } from "@1password/op-js";
import { install } from "@1password/install-cli-action/dist-lib/lib";
import { loadSecrets, unsetPrevious, validateAuth } from "./utils";
const loadSecretsAction = async () => {
@@ -43,9 +44,6 @@ const installCLI = async (): Promise<void> => {
// 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 () => {
// eslint-disable-next-line
const { install } = require("@1password/install-cli-action");
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
await install();
});
};