File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424 uses : ./
2525
2626 - name : Validate Stackql Version
27- run : stackql --version
27+ run : sudo stackql --version
Original file line number Diff line number Diff line change @@ -6723,16 +6723,15 @@ async function downloadCLI(){
67236723 const url = urls [ 'ubuntu' ]
67246724 const pathToCLIZip = await tc . downloadTool ( url ) ;
67256725
6726- console . log ( 'path to CLI Zip is %o' , pathToCLIZip )
6727-
67286726 let pathToCLI = '' ;
67296727
67306728 pathToCLI = await tc . extractZip ( pathToCLIZip ) ;
67316729
67326730 fs . chmodSync ( pathToCLI , '755' ) ;
67336731
6734- core . addPath ( pathToCLI ) ;
6735-
6732+ core . debug ( `Stackql CLI path is ${ pathToCLI } .` ) ;
6733+
6734+ return pathToCLI
67366735
67376736 } catch ( error ) {
67386737 core . error ( error ) ;
@@ -6742,7 +6741,9 @@ async function downloadCLI(){
67426741
67436742async function setup ( ) {
67446743
6745- await downloadCLI ( os )
6744+ const path = await downloadCLI ( )
6745+
6746+ core . addPath ( path )
67466747}
67476748
67486749( async ( ) => {
Original file line number Diff line number Diff line change @@ -21,16 +21,15 @@ async function downloadCLI(){
2121 const url = urls [ 'ubuntu' ]
2222 const pathToCLIZip = await tc . downloadTool ( url ) ;
2323
24- console . log ( 'path to CLI Zip is %o' , pathToCLIZip )
25-
2624 let pathToCLI = '' ;
2725
2826 pathToCLI = await tc . extractZip ( pathToCLIZip ) ;
2927
3028 fs . chmodSync ( pathToCLI , '755' ) ;
3129
32- core . addPath ( pathToCLI ) ;
33-
30+ core . debug ( `Stackql CLI path is ${ pathToCLI } .` ) ;
31+
32+ return pathToCLI
3433
3534 } catch ( error ) {
3635 core . error ( error ) ;
@@ -40,7 +39,9 @@ async function downloadCLI(){
4039
4140async function setup ( ) {
4241
43- await downloadCLI ( os )
42+ const path = await downloadCLI ( )
43+
44+ core . addPath ( path )
4445}
4546
4647( async ( ) => {
You can’t perform that action at this time.
0 commit comments