File tree 3 files changed +13
-2
lines changed
3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 6
6
main : main.js
7
7
inputs :
8
8
tool_versions :
9
- description :
9
+ description : |-
10
10
If present, this value will be written to the .tool-versions file.
11
11
required : false
12
12
before_install :
13
- description :
13
+ description : |-
14
14
Bash script to run after plugins are installed but before `asdf install`.
15
15
eg, to install npm keyring
16
16
required : false
Original file line number Diff line number Diff line change @@ -3363,6 +3363,11 @@ async function pluginsAdd() {
3363
3363
3364
3364
// src/install/index.ts
3365
3365
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
+ }
3366
3371
await pluginsAdd ( ) ;
3367
3372
const before = core3 . getInput ( "before_install" , { required : false } ) ;
3368
3373
if ( before ) {
Original file line number Diff line number Diff line change @@ -3,6 +3,12 @@ import * as exec from '@actions/exec';
3
3
import { pluginsAdd } from '~/plugins-add/index.ts' ;
4
4
5
5
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
+
6
12
await pluginsAdd ( ) ;
7
13
8
14
const before = core . getInput ( 'before_install' , { required : false } ) ;
You can’t perform that action at this time.
0 commit comments