Skip to content

Commit 086ce59

Browse files
committed
failing linters
1 parent 6278efe commit 086ce59

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

install/action.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ runs:
66
main: main.js
77
inputs:
88
tool_versions:
9-
description:
9+
description: |-
1010
If present, this value will be written to the .tool-versions file.
1111
required: false
1212
before_install:
13-
description:
13+
description: |-
1414
Bash script to run after plugins are installed but before `asdf install`.
1515
eg, to install npm keyring
1616
required: false

install/main.js

+5
Original file line numberDiff line numberDiff line change
@@ -3363,6 +3363,11 @@ async function pluginsAdd() {
33633363

33643364
// src/install/index.ts
33653365
async function toolsInstall() {
3366+
const dir = core3.getInput("directory", { required: false });
3367+
if (dir) {
3368+
const process2 = require("node:process");
3369+
process2.chdir(dir);
3370+
}
33663371
await pluginsAdd();
33673372
const before = core3.getInput("before_install", { required: false });
33683373
if (before) {

src/install/index.ts

+6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ import * as exec from '@actions/exec';
33
import {pluginsAdd} from '~/plugins-add/index.ts';
44

55
async function toolsInstall(): Promise<void> {
6+
const dir = core.getInput('directory', {required: false});
7+
if (dir) {
8+
const process = require('node:process');
9+
process.chdir(dir);
10+
}
11+
612
await pluginsAdd();
713

814
const before = core.getInput('before_install', {required: false});

0 commit comments

Comments
 (0)