Skip to content

Commit 2907296

Browse files
committed
fix workdir and change action options description
1 parent 3cf5374 commit 2907296

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ branding:
88
inputs:
99
token:
1010
required: true
11-
description: 'Square Cloud api token'
11+
description: 'Square Cloud API token'
1212
command:
1313
required: true
14-
description: 'Command you want to execute'
15-
cwd:
14+
description: 'Arguments to pass to Square Cloud CLI'
15+
workdir:
1616
required: false
1717
default: "."
18-
description: 'Command you want to execute'
18+
description: 'Working Directory'
1919

2020
runs:
2121
using: 'node20'

src/context.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ import os from "node:os";
44
export interface ActionInputs {
55
token: string;
66
command: string;
7-
cwd: string;
7+
workdir: string;
88
}
99

1010
export function getInputs(): ActionInputs {
1111
return {
1212
token: core.getInput("token", { required: true }),
1313
command: core.getInput("command", { required: true }),
14-
cwd: core.getInput("cwd") || ".",
14+
workdir: core.getInput("cwd") || ".",
1515
}
1616
}
1717

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { install } from "./cli";
66

77
async function run(): Promise<void> {
88
try {
9-
const { cwd, command, token } = getInputs()
9+
const { workdir: cwd, command, token } = getInputs()
1010

1111
const cliBinary = await install()
1212
core.info(`CLI Installed successfully`)

0 commit comments

Comments
 (0)