Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Jan 14, 2025
1 parent 2b5afd4 commit 9b74e4b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions action.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,13 @@ async function install_pkgx() {
fs.appendFileSync(process.env["GITHUB_ENV"], `PKGX_DIR=${process.env.INPUT_PKGX_DIR}\n`);
}

if (os.platform() != 'darwin') {
console.log(`::group::installing pre-requisites`);
const installer_script_path = path.join(path.dirname(__filename), "installer.sh");
execSync(installer_script_path, {env: {PKGX_UPDATE: 'no'}});
console.log(`::endgroup::`);
}

if (process.env['INPUT_+']) {
console.log(`::group::installing pkgx input packages`);
const args = process.env['INPUT_+'].split(' ');
Expand All @@ -139,13 +146,6 @@ async function install_pkgx() {
parse_pkgx_output(output.toString());
console.log(`::endgroup::`);
}

if (os.platform() != 'darwin') {
console.log(`::group::installing pre-requisites`);
const installer_script_path = path.join(path.dirname(__filename), "installer.sh");
execSync(installer_script_path, {env: {PKGX_UPDATE: 'no'}});
console.log(`::endgroup::`);
}
})().catch(err => {
console.error(`::error::${err.message}`)
process.exit(1);
Expand Down

0 comments on commit 9b74e4b

Please sign in to comment.