File tree Expand file tree Collapse file tree 3 files changed +13
-2
lines changed
Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 66 main : main.js
77inputs :
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
Original file line number Diff line number Diff line change @@ -3363,6 +3363,11 @@ async function pluginsAdd() {
33633363
33643364// src/install/index.ts
33653365async 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 ) {
Original file line number Diff line number Diff line change @@ -3,6 +3,12 @@ import * as exec from '@actions/exec';
33import { pluginsAdd } from '~/plugins-add/index.ts' ;
44
55async 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 } ) ;
You can’t perform that action at this time.
0 commit comments