Skip to content

Commit 87d6fe3

Browse files
committed
fix cli env path
1 parent 2e0aa8c commit 87d6fe3

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

dist/index.js

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import * as exec from "@actions/exec";
33

44
import { getInputs } from "./context";
55
import { install } from "./cli";
6+
import { dirname } from "path";
67

78
async function run(): Promise<void> {
89
try {
@@ -19,7 +20,7 @@ async function run(): Promise<void> {
1920
await exec.exec(`${cliBinary} login --token=${token}`)
2021
core.debug(`Successfully logged to Square Cloud`)
2122

22-
core.addPath(cliBinary)
23+
core.addPath(dirname(cliBinary))
2324
core.debug(`Added ${cliBinary} to path`)
2425

2526
if (installOnly) return

0 commit comments

Comments
 (0)