From c9d55c876b2819d96f090d56655602303d364fbf Mon Sep 17 00:00:00 2001 From: Alexis Ksigzkiewicz <115569470+AlexisKGZ@users.noreply.github.com> Date: Tue, 12 Sep 2023 08:44:08 +0200 Subject: [PATCH] Update index.js --- dist/index.js | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/dist/index.js b/dist/index.js index 217e272..1ec497c 100644 --- a/dist/index.js +++ b/dist/index.js @@ -13219,13 +13219,24 @@ module.exports.run = function(command, args, workingFolder = null) { const core = __nccwpck_require__(6761) 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('export', ['PATH=sfdx-cli/bin:$PATH']); + //execCommand.run('sf', ['--version']); + //core.info('=== SFDX cli installed ==='); +//}; + 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('wget', ['https://developer.salesforce.com/media/salesforce-cli/sfdx/versions/7.209.6/8ba3197/sfdx-v7.209.6-8ba3197-linux-x64.tar.xz']); + //execCommand.run('wget', ['https://developer.salesforce.com/media/salesforce-cli/sfdx-linux-amd64.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('export', ['PATH=sfdx-cli/bin:$PATH']); - execCommand.run('sf', ['--version']); + execCommand.run('tar', ['xJf', 'sfdx-v7.209.6-8ba3197-linux-x64.tar.xz', '-C', 'sfdx-cli', '--strip-components', '1']); + //execCommand.run('tar', ['xJf', 'sfdx-linux-amd64.tar.xz', '-C', 'sfdx-cli', '--strip-components', '1']); + execCommand.run('./sfdx-cli/install', []); core.info('=== SFDX cli installed ==='); };