Skip to content

Commit 5f8f393

Browse files
committed
Fix vessel install.
1 parent 7cc6280 commit 5f8f393

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

dist/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,9 @@ function run() {
5555
// Opt-out of having data collected about dfx usage.
5656
core.exportVariable('DFX_TELEMETRY_DISABLED', 1);
5757
// Install dfx.
58-
child_process_1.default.execSync(`echo y | DFX_VERSION=${dfxVersion} sh -ci "$(curl -fsSL https://sdk.dfinity.org/install.sh)"`);
58+
child_process_1.default.execSync(`mkdir -p /home/runner/bin`);
5959
core.addPath('/home/runner/bin');
60+
child_process_1.default.execSync(`echo y | DFX_VERSION=${dfxVersion} sh -ci "$(curl -fsSL https://sdk.dfinity.org/install.sh)"`);
6061
const dfxPath = yield io.which('dfx');
6162
core.debug(dfxPath);
6263
infoExec(`${dfxPath} --version`);
@@ -79,7 +80,7 @@ function run() {
7980
// Install vessel.
8081
const vesselVersion = core.getInput('vessel-version');
8182
if (vesselVersion) {
82-
child_process_1.default.execSync(`curl -L https://github.com/dfinity/vessel/releases/download/v${vesselVersion}/vessel-linux64 > /home/runner/bin/vessel`);
83+
child_process_1.default.execSync(`wget -O /home/runner/bin/vessel https://github.com/dfinity/vessel/releases/download/v${vesselVersion}/vessel-linux64`);
8384
child_process_1.default.execSync(`chmod +x /home/runner/bin/vessel`);
8485
const vesselPath = yield io.which('vessel');
8586
infoExec(`${vesselPath} --version`);

src/main.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ export async function run() {
1717
core.exportVariable('DFX_TELEMETRY_DISABLED', 1);
1818

1919
// Install dfx.
20-
cp.execSync(`echo y | DFX_VERSION=${dfxVersion} sh -ci "$(curl -fsSL https://sdk.dfinity.org/install.sh)"`);
20+
cp.execSync(`mkdir -p /home/runner/bin`);
2121
core.addPath('/home/runner/bin');
22+
cp.execSync(`echo y | DFX_VERSION=${dfxVersion} sh -ci "$(curl -fsSL https://sdk.dfinity.org/install.sh)"`);
2223

2324
const dfxPath = await io.which('dfx');
2425
core.debug(dfxPath);
@@ -46,7 +47,7 @@ export async function run() {
4647
// Install vessel.
4748
const vesselVersion = core.getInput('vessel-version');
4849
if (vesselVersion) {
49-
cp.execSync(`curl -L https://github.com/dfinity/vessel/releases/download/v${vesselVersion}/vessel-linux64 > /home/runner/bin/vessel`);
50+
cp.execSync(`wget -O /home/runner/bin/vessel https://github.com/dfinity/vessel/releases/download/v${vesselVersion}/vessel-linux64`);
5051
cp.execSync(`chmod +x /home/runner/bin/vessel`);
5152

5253
const vesselPath = await io.which('vessel');

0 commit comments

Comments
 (0)