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 @@ -3261,6 +3261,7 @@ var require_exec = __commonJS({
3261
3261
var core4 = __toESM ( require_core ( ) ) ;
3262
3262
3263
3263
// src/install/index.ts
3264
+ var import_node_process = require ( "node:process" ) ;
3264
3265
var core3 = __toESM ( require_core ( ) ) ;
3265
3266
var exec5 = __toESM ( require_exec ( ) ) ;
3266
3267
@@ -3363,6 +3364,10 @@ async function pluginsAdd() {
3363
3364
3364
3365
// src/install/index.ts
3365
3366
async function toolsInstall ( ) {
3367
+ const dir = core3 . getInput ( "directory" , { required : false } ) ;
3368
+ if ( dir ) {
3369
+ ( 0 , import_node_process . 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
1
+ import { chdir } from 'node:process' ;
1
2
import * as core from '@actions/core' ;
2
3
import * as exec from '@actions/exec' ;
3
4
import { pluginsAdd } from '~/plugins-add/index.ts' ;
4
5
5
6
async function toolsInstall ( ) : Promise < void > {
7
+ const dir = core . getInput ( 'directory' , { required : false } ) ;
8
+ if ( dir ) {
9
+ 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