Skip to content

Commit 26fe6d3

Browse files
authored
feat: add support for specifying a recipe file path (#67)
1 parent 58c8341 commit 26fe6d3

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

action.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ inputs:
4848
default: ''
4949
description: Path to local Deployer binary.
5050

51+
recipe:
52+
required: false
53+
default: ''
54+
description: Recipe file path.
55+
5156
ansi:
5257
required: false
5358
default: 'true'

index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,11 @@ async function dep() {
106106
}
107107

108108
let cmd = core.getInput('dep').split(' ')
109+
let recipe = core.getInput('recipe')
110+
if (recipe !== '') {
111+
recipe = `--file=${recipe}`
112+
}
113+
109114
let ansi = core.getBooleanInput('ansi') ? '--ansi' : '--no-ansi'
110115
let verbosity = core.getInput('verbosity')
111116
let options = []
@@ -121,7 +126,7 @@ async function dep() {
121126
}
122127

123128
try {
124-
await $`php ${dep} ${cmd} --no-interaction ${ansi} ${verbosity} ${options}`
129+
await $`php ${dep} ${cmd} ${recipe} --no-interaction ${ansi} ${verbosity} ${options}`
125130
} catch (err) {
126131
core.setFailed(`Failed: dep ${cmd}`)
127132
}

0 commit comments

Comments
 (0)