Use install-cli-action from other branch
This commit is contained in:
33207
dist/index.js
vendored
33207
dist/index.js
vendored
File diff suppressed because one or more lines are too long
6
package-lock.json
generated
6
package-lock.json
generated
@@ -9,7 +9,7 @@
|
||||
"version": "2.0.0",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@1password/install-cli-action": "github:1password/install-cli-action#vzt/export-install-function",
|
||||
"@1password/install-cli-action": "github:1password/install-cli-action#vzt/test-module-package",
|
||||
"@1password/op-js": "^0.1.11",
|
||||
"@actions/core": "^1.11.1",
|
||||
"@actions/exec": "^1.1.1",
|
||||
@@ -54,8 +54,8 @@
|
||||
},
|
||||
"node_modules/@1password/install-cli-action": {
|
||||
"name": "install-cli-action",
|
||||
"version": "1.0.0",
|
||||
"resolved": "git+ssh://git@github.com/1password/install-cli-action.git#c629965f5c1909e7ff537b807f5d4006db267272",
|
||||
"version": "2.0.0",
|
||||
"resolved": "git+ssh://git@github.com/1password/install-cli-action.git#a35a06d70bc37d29059f85f4f3decaf86b1a966d",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@actions/core": "^1.11.1",
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
},
|
||||
"homepage": "https://github.com/1Password/load-secrets-action#readme",
|
||||
"dependencies": {
|
||||
"@1password/install-cli-action": "github:1password/install-cli-action#vzt/export-install-function",
|
||||
"@1password/install-cli-action": "github:1password/install-cli-action#vzt/test-module-package",
|
||||
"@1password/op-js": "^0.1.11",
|
||||
"@actions/core": "^1.11.1",
|
||||
"@actions/exec": "^1.1.1",
|
||||
|
||||
@@ -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();
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user