Skip to content

Commit

Permalink
fix cli env path
Browse files Browse the repository at this point in the history
  • Loading branch information
richaardev committed May 5, 2024
1 parent 2e0aa8c commit 87d6fe3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import * as exec from "@actions/exec";

import { getInputs } from "./context";
import { install } from "./cli";
import { dirname } from "path";

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

core.addPath(cliBinary)
core.addPath(dirname(cliBinary))
core.debug(`Added ${cliBinary} to path`)

if (installOnly) return
Expand Down

0 comments on commit 87d6fe3

Please sign in to comment.