File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 99}
1010
1111function installSFDX ( ) {
12- var download = 'wget https://developer.salesforce.com/media/salesforce-cli/sfdx-linux-amd64 .tar.xz -P /tmp'
12+ var download = 'wget https://developer.salesforce.com/media/salesforce-cli/sfdx/channels/stable/sfdx -linux-x64 .tar.xz -P /tmp'
1313 var createDir = 'mkdir sfdx'
1414 var unzip = 'tar xJf /tmp/sfdx-linux-amd64.tar.xz -C sfdx --strip-components 1'
15- var install = '. /sfdx/install '
16- var clean = 'rm -r ./ sfdx'
17- exec ( download + ' && ' + createDir + ' && ' + unzip + ' && ' + install + ' && ' + clean , function ( error , stdout , stderr ) {
15+ var install = 'echo "`pwd` /sfdx/bin" >> $GITHUB_PATH '
16+ var version = 'sfdx/bin/ sfdx --version '
17+ exec ( download + ' && ' + createDir + ' && ' + unzip + ' && ' + install + ' && ' + version , function ( error , stdout , stderr ) {
1818 if ( error ) throw ( stderr )
1919 core . debug ( stdout )
2020 if ( core . getInput ( 'sfdx-auth-url' ) ) createAuthFile ( )
@@ -27,8 +27,8 @@ function createAuthFile(){
2727}
2828
2929function authSFDX ( ) {
30- var params = '--setdefaultdevhubusername --setdefaultusername - a SFDX-ENV'
31- exec ( 'sfdx auth:sfdxurl:store -f /tmp/sfdx_auth.txt ' + params , function ( error , stdout , stderr ) {
30+ var params = '--setdefaultdevhubusername -a SFDX-ENV'
31+ exec ( 'sfdx/bin/sfdx auth:sfdxurl:store -f /tmp/sfdx_auth.txt ' + params , function ( error , stdout , stderr ) {
3232 if ( error ) throw ( stderr )
3333 core . debug ( stdout )
3434 } )
You can’t perform that action at this time.
0 commit comments