Skip to content

Commit

Permalink
Add PATH to logs.
Browse files Browse the repository at this point in the history
  • Loading branch information
q-uint committed Mar 17, 2024
1 parent a9c8a14 commit c6a790d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,14 @@ function run() {
// Breaking change since dfx 0.17.0...
core.exportVariable('DFXVM_INIT_YES', 'true');
if (os_1.default.platform() === 'linux') {
core.addPath(`$HOME/.local/share/dfx/bin`);
core.addPath(`/home/runner/.local/share/dfx/bin`);
}
else {
core.addPath(`$HOME/Library/Application Support/org.dfinity.dfx/bin`);
core.addPath(`/usr/Library/Application Support/org.dfinity.dfx/bin`);
}
// Install dfx.
child_process_1.default.execSync(`sh -ci "$(curl -fsSL https://internetcomputer.org/install.sh)"`);
const dfxPath = yield io.which('dfx');
core.debug(dfxPath);
infoExec(`${dfxPath} --version`);
// Setup identity.
const id = process.env[`DFX_IDENTITY_PEM`] || '';
Expand Down
5 changes: 2 additions & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,15 @@ export async function run() {
// Breaking change since dfx 0.17.0...
core.exportVariable('DFXVM_INIT_YES', 'true');
if (os.platform() === 'linux') {
core.addPath(`$HOME/.local/share/dfx/bin`)
core.addPath(`/home/runner/.local/share/dfx/bin`)
} else {
core.addPath(`$HOME/Library/Application Support/org.dfinity.dfx/bin`);
core.addPath(`/usr/Library/Application Support/org.dfinity.dfx/bin`);
}

// Install dfx.
cp.execSync(`sh -ci "$(curl -fsSL https://internetcomputer.org/install.sh)"`);

const dfxPath = await io.which('dfx');
core.debug(dfxPath);
infoExec(`${dfxPath} --version`);

// Setup identity.
Expand Down

0 comments on commit c6a790d

Please sign in to comment.