File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818 # `deploy all`.
1919 # Required.
2020 dep : deploy
21+
22+ # The path to the PHP binary to use.
23+ # Optional.
24+ php-binary : " php"
2125
2226 # Specifies a sub directory within the repository to deploy
2327 # Optional
Original file line number Diff line number Diff line change 77 dep :
88 required : true
99 description : The command.
10+
11+ php-binary :
12+ required : false
13+ default : ' '
14+ description : Path to PHP binary.
1015
1116 sub-directory :
1217 required : false
Original file line number Diff line number Diff line change @@ -124,9 +124,15 @@ async function dep() {
124124 } catch ( e ) {
125125 console . error ( 'Invalid JSON in options' )
126126 }
127+
128+ let phpBin = 'php'
129+ let phpBinArg = core . getInput ( 'php-binary' ) ;
130+ if ( phpBinArg !== '' ) {
131+ phpBin = phpBinArg
132+ }
127133
128134 try {
129- await $ `php ${ dep } ${ cmd } ${ recipe } --no-interaction ${ ansi } ${ verbosity } ${ options } `
135+ await $ `${ phpBin } ${ dep } ${ cmd } ${ recipe } --no-interaction ${ ansi } ${ verbosity } ${ options } `
130136 } catch ( err ) {
131137 core . setFailed ( `Failed: dep ${ cmd } ` )
132138 }
You can’t perform that action at this time.
0 commit comments