Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexisKGZ authored Sep 12, 2023
1 parent 6c9a4ca commit c9d55c8
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ===');
};

Expand Down

0 comments on commit c9d55c8

Please sign in to comment.