@@ -30,12 +30,12 @@ async function install_cpanm_location() {
30
30
async function install_cpanm ( install_to ) {
31
31
const url = "https://cpanmin.us" ;
32
32
33
- core . setOutput ( `Get cpanm from ${ url } ` ) ;
33
+ core . info ( `Get cpanm from ${ url } ` ) ;
34
34
35
35
const cpanmScript = await tc . downloadTool ( url ) ;
36
36
37
- core . setOutput ( " cpanm" , cpanmScript ) ;
38
- console . log ( `install_to ${ install_to } ` ) ;
37
+ core . info ( ` cpanm Script: ${ cpanmScript } ` ) ;
38
+ core . info ( `install_to ${ install_to } ` ) ;
39
39
40
40
const platform = os . platform ( ) ;
41
41
@@ -79,7 +79,7 @@ async function do_exec(cmd) {
79
79
const platform = os . platform ( ) ;
80
80
const bin = sudo && platform != "win32" ? "sudo" : cmd . shift ( ) ;
81
81
82
- console . log ( `do_exec: ${ bin } ` ) ;
82
+ core . info ( `do_exec: ${ bin } ` ) ;
83
83
84
84
await exec . exec ( bin , cmd ) ;
85
85
}
@@ -126,7 +126,7 @@ async function run() {
126
126
/* install one ore more modules */
127
127
if ( install !== null && install . length ) {
128
128
// install one or more modules
129
- console . log ( `install: ${ install } !` ) ;
129
+ core . info ( `install: ${ install } !` ) ;
130
130
const list = install . split ( "\n" ) ;
131
131
132
132
var cmd = [ ...CMD_install ] ; /* clone array */
@@ -139,9 +139,9 @@ async function run() {
139
139
/* install from cpanfile */
140
140
if ( cpanfile !== null && cpanfile . length ) {
141
141
// install one or more modules
142
- console . log ( `cpanfile: ${ cpanfile } !` ) ;
142
+ core . info ( `cpanfile: ${ cpanfile } !` ) ;
143
143
const cpanfile_full_path = path . resolve ( cpanfile ) ;
144
- console . log ( `cpanfile: ${ cpanfile_full_path } ! [resolved]` ) ;
144
+ core . info ( `cpanfile: ${ cpanfile_full_path } ! [resolved]` ) ;
145
145
146
146
var cmd = [ ...CMD_install ] ;
147
147
cmd . push ( "--cpanfile" , cpanfile_full_path , "--installdeps" , "." ) ;
@@ -152,7 +152,7 @@ async function run() {
152
152
153
153
/* custom run with args */
154
154
if ( has_run === false && w_args . length ) {
155
- console . log ( `custom run with args` ) ;
155
+ core . info ( `custom run with args` ) ;
156
156
var cmd = [ ...CMD_install ] ;
157
157
has_run = true ;
158
158
await do_exec ( cmd ) ;
0 commit comments