From 1fdc671124803f638ce7fbfc21ebde2d518fdc9d Mon Sep 17 00:00:00 2001 From: Alexis Ksigzkiewicz <115569470+AlexisKGZ@users.noreply.github.com> Date: Tue, 12 Sep 2023 11:06:31 +0200 Subject: [PATCH] Update install-dependencies.js (#2) Co-authored-by: Houssame Yahiaoui --- dist/index.js | 7 ++----- src/utils/install-dependencies.js | 5 +---- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/dist/index.js b/dist/index.js index 3c9acfc..c73eaa7 100644 --- a/dist/index.js +++ b/dist/index.js @@ -13221,10 +13221,7 @@ const execCommand = __nccwpck_require__(7236); var fnInstallSFDX = function(){ core.info('=== Downloading and installing SFDX cli ==='); - execCommand.run('wget', ['https://developer.salesforce.com/media/salesforce-cli/sf/channels/stable/sf-linux-x64.tar.xz']); - execCommand.run('mkdir', ['-p', 'sfdx-cli']); - execCommand.run('tar', ['xJf', 'sf-linux-x64.tar.xz', '-C', 'sfdx-cli', '--strip-components', '1']); - execCommand.run('./sfdx-cli/install', []); + execCommand.run('npm', ['install', 'sfdx-cli', '--global']); core.info('=== SFDX cli installed ==='); }; @@ -13607,4 +13604,4 @@ try { module.exports = __webpack_exports__; /******/ })() -; \ No newline at end of file +; diff --git a/src/utils/install-dependencies.js b/src/utils/install-dependencies.js index 8fd0d55..a7f9503 100644 --- a/src/utils/install-dependencies.js +++ b/src/utils/install-dependencies.js @@ -3,10 +3,7 @@ const execCommand = require('./exec-command.js'); var fnInstallSFDX = function(){ core.info('=== Downloading and installing SFDX cli ==='); - execCommand.run('wget', ['https://developer.salesforce.com/media/salesforce-cli/sf/channels/stable/sf-linux-x64.tar.xz']); - execCommand.run('mkdir', ['-p', 'sfdx-cli']); - execCommand.run('tar', ['xJf', 'sf-linux-x64.tar.xz', '-C', 'sfdx-cli', '--strip-components', '1']); - execCommand.run('./sfdx-cli/install', []); + execCommand.run('npm', ['install', 'sfdx-cli', '--global']); core.info('=== SFDX cli installed ==='); };