Skip to content

Commit

Permalink
fix workdir and change action options description
Browse files Browse the repository at this point in the history
  • Loading branch information
richaardev committed Mar 23, 2024
1 parent 3cf5374 commit 2907296
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ branding:
inputs:
token:
required: true
description: 'Square Cloud api token'
description: 'Square Cloud API token'
command:
required: true
description: 'Command you want to execute'
cwd:
description: 'Arguments to pass to Square Cloud CLI'
workdir:
required: false
default: "."
description: 'Command you want to execute'
description: 'Working Directory'

runs:
using: 'node20'
Expand Down
4 changes: 2 additions & 2 deletions src/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ import os from "node:os";
export interface ActionInputs {
token: string;
command: string;
cwd: string;
workdir: string;
}

export function getInputs(): ActionInputs {
return {
token: core.getInput("token", { required: true }),
command: core.getInput("command", { required: true }),
cwd: core.getInput("cwd") || ".",
workdir: core.getInput("cwd") || ".",
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { install } from "./cli";

async function run(): Promise<void> {
try {
const { cwd, command, token } = getInputs()
const { workdir: cwd, command, token } = getInputs()

const cliBinary = await install()
core.info(`CLI Installed successfully`)
Expand Down

0 comments on commit 2907296

Please sign in to comment.