fix: rename "install_dir" config to "working_directory"
This fits in better with other actions
This commit is contained in:
parent
7d17151741
commit
4541e25ef8
5 changed files with 13 additions and 7 deletions
|
@ -28,6 +28,7 @@ jobs:
|
||||||
mise_toml: |
|
mise_toml: |
|
||||||
[tools]
|
[tools]
|
||||||
shellcheck = "0.9.0"
|
shellcheck = "0.9.0"
|
||||||
|
working_directory: app # [default: .] directory to run mise in
|
||||||
- run: shellcheck scripts/*.sh
|
- run: shellcheck scripts/*.sh
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
@ -24,10 +24,6 @@ inputs:
|
||||||
required: false
|
required: false
|
||||||
default: "true"
|
default: "true"
|
||||||
description: if false, will not run `mise install`
|
description: if false, will not run `mise install`
|
||||||
install_dir:
|
|
||||||
required: false
|
|
||||||
default: "."
|
|
||||||
description: The directory that `mise install` will be executed in
|
|
||||||
cache:
|
cache:
|
||||||
required: false
|
required: false
|
||||||
default: "true"
|
default: "true"
|
||||||
|
@ -48,6 +44,10 @@ inputs:
|
||||||
required: false
|
required: false
|
||||||
default: "info"
|
default: "info"
|
||||||
description: The log level to use for the action
|
description: The log level to use for the action
|
||||||
|
working_directory:
|
||||||
|
required: false
|
||||||
|
default: "."
|
||||||
|
description: The directory that mise runs in
|
||||||
outputs:
|
outputs:
|
||||||
cache-hit:
|
cache-hit:
|
||||||
description: A boolean value to indicate if a cache was hit.
|
description: A boolean value to indicate if a cache was hit.
|
||||||
|
|
4
dist/index.js
generated
vendored
4
dist/index.js
generated
vendored
|
@ -80258,7 +80258,9 @@ function getOS() {
|
||||||
const testMise = async () => mise(['--version']);
|
const testMise = async () => mise(['--version']);
|
||||||
const miseInstall = async () => mise(['install']);
|
const miseInstall = async () => mise(['install']);
|
||||||
const mise = async (args) => core.group(`Running mise ${args.join(' ')}`, async () => {
|
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 });
|
return exec.exec('mise', args, { cwd });
|
||||||
});
|
});
|
||||||
const writeFile = async (p, body) => core.group(`Writing ${p}`, async () => {
|
const writeFile = async (p, body) => core.group(`Writing ${p}`, async () => {
|
||||||
|
|
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
|
@ -129,7 +129,10 @@ const testMise = async (): Promise<number> => mise(['--version'])
|
||||||
const miseInstall = async (): Promise<number> => mise(['install'])
|
const miseInstall = async (): Promise<number> => mise(['install'])
|
||||||
const mise = async (args: string[]): Promise<number> =>
|
const mise = async (args: string[]): Promise<number> =>
|
||||||
core.group(`Running mise ${args.join(' ')}`, async () => {
|
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 })
|
return exec.exec('mise', args, { cwd })
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue