Skip to content

Commit

Permalink
Update install-dependencies.js
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexisKGZ authored Sep 12, 2023
1 parent 7636237 commit 6c9a4ca
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions src/utils/install-dependencies.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,24 @@
const core = require('@actions/core')
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('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 6c9a4ca

Please sign in to comment.