mirror of
https://github.com/jdx/mise-action.git
synced 2026-05-14 22:00:34 +00:00
feat: export env vars from mise.toml (#241)
Solve https://github.com/jdx/mise-action/issues/36 BREAKING CHANGE: we're defaulting this behavior to `true` --------- Co-authored-by: jdx <216188+jdx@users.noreply.github.com>
This commit is contained in:
parent
e7e48454f4
commit
f0b1d70eae
6 changed files with 22 additions and 2 deletions
|
|
@ -35,6 +35,11 @@ async function run(): Promise<void> {
|
|||
}
|
||||
}
|
||||
await miseLs()
|
||||
const loadEnv = core.getBooleanInput('env')
|
||||
if (loadEnv) {
|
||||
const output = await exec.getExecOutput('mise', ['env', '--dotenv'])
|
||||
fs.appendFileSync(process.env.GITHUB_ENV!, output.stdout)
|
||||
}
|
||||
} catch (err) {
|
||||
if (err instanceof Error) core.setFailed(err.message)
|
||||
else throw err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue