Skip to content

Commit 4c05ed6

Browse files
try sudo
1 parent 42ae100 commit 4c05ed6

3 files changed

Lines changed: 13 additions & 11 deletions

File tree

.github/workflows/set-up-stackql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ jobs:
2424
uses: ./
2525

2626
- name: Validate Stackql Version
27-
run: stackql --version
27+
run: sudo stackql --version

dist/index.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff 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

67436742
async function setup(){
67446743

6745-
await downloadCLI(os)
6744+
const path = await downloadCLI()
6745+
6746+
core.addPath(path)
67466747
}
67476748

67486749
(async () => {

index.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff 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

4140
async function setup(){
4241

43-
await downloadCLI(os)
42+
const path = await downloadCLI()
43+
44+
core.addPath(path)
4445
}
4546

4647
(async () => {

0 commit comments

Comments
 (0)