Skip to content

Commit 41c0332

Browse files
committed
add to path by default
1 parent e270c2d commit 41c0332

2 files changed

Lines changed: 7 additions & 9 deletions

File tree

dist/index.js

Lines changed: 3 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,10 @@ async function run(): Promise<void> {
1919
await exec.exec(`${cliBinary} login --token=${token}`)
2020
core.debug(`Successfully logged to Square Cloud`)
2121

22-
if (installOnly) {
23-
core.addPath(cliBinary)
24-
core.debug(`Added ${cliBinary} to path`)
25-
return
26-
}
22+
core.addPath(cliBinary)
23+
core.debug(`Added ${cliBinary} to path`)
24+
25+
if (installOnly) return
2726

2827
await exec.exec(`${cliBinary} ${command}`)
2928
} catch (error) {

0 commit comments

Comments
 (0)