fix: rename "install_dir" config to "working_directory"

This fits in better with other actions
This commit is contained in:
Jeff Dickey 2024-06-01 10:35:57 -05:00
parent 7d17151741
commit 4541e25ef8
No known key found for this signature in database
GPG key ID: 584DADE86724B407
5 changed files with 13 additions and 7 deletions

View file

@ -28,6 +28,7 @@ jobs:
mise_toml: |
[tools]
shellcheck = "0.9.0"
working_directory: app # [default: .] directory to run mise in
- run: shellcheck scripts/*.sh
test:
runs-on: ubuntu-latest

View file

@ -24,10 +24,6 @@ inputs:
required: false
default: "true"
description: if false, will not run `mise install`
install_dir:
required: false
default: "."
description: The directory that `mise install` will be executed in
cache:
required: false
default: "true"
@ -48,6 +44,10 @@ inputs:
required: false
default: "info"
description: The log level to use for the action
working_directory:
required: false
default: "."
description: The directory that mise runs in
outputs:
cache-hit:
description: A boolean value to indicate if a cache was hit.

4
dist/index.js generated vendored
View file

@ -80258,7 +80258,9 @@ function getOS() {
const testMise = async () => mise(['--version']);
const miseInstall = async () => mise(['install']);
const mise = async (args) => core.group(`Running mise ${args.join(' ')}`, async () => {
const cwd = core.getInput('install_dir') || process.cwd();
const cwd = core.getInput('working_directory') ||
core.getInput('install_dir') ||
process.cwd();
return exec.exec('mise', args, { cwd });
});
const writeFile = async (p, body) => core.group(`Writing ${p}`, async () => {

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View file

@ -129,7 +129,10 @@ const testMise = async (): Promise<number> => mise(['--version'])
const miseInstall = async (): Promise<number> => mise(['install'])
const mise = async (args: string[]): Promise<number> =>
core.group(`Running mise ${args.join(' ')}`, async () => {
const cwd = core.getInput('install_dir') || process.cwd()
const cwd =
core.getInput('working_directory') ||
core.getInput('install_dir') ||
process.cwd()
return exec.exec('mise', args, { cwd })
})