mirror of
https://github.com/deployphp/action.git
synced 2025-03-31 10:26:36 +00:00
Fix handling of config options
This commit is contained in:
parent
eed58e3496
commit
098e6b1c9f
2 changed files with 6 additions and 3 deletions
|
@ -24,9 +24,12 @@
|
|||
sub-directory: "..."
|
||||
|
||||
# Config options for the Deployer. Same as the `-o` flag in the CLI.
|
||||
# Must be a JSON object.
|
||||
# Optional.
|
||||
options:
|
||||
keep_releases: 7
|
||||
options: |
|
||||
{
|
||||
"keep_releases": 7
|
||||
}
|
||||
|
||||
# Private key for connecting to remote hosts. To generate private key:
|
||||
# `ssh-keygen -o -t rsa -C 'action@deployer.org'`.
|
||||
|
|
2
index.js
2
index.js
|
@ -110,7 +110,7 @@ async function dep() {
|
|||
let verbosity = core.getInput('verbosity')
|
||||
let options = []
|
||||
try {
|
||||
for (let [key, value] in Object.entries(JSON.parse(core.getInput('options')))) {
|
||||
for (let [key, value] of Object.entries(JSON.parse(core.getInput('options')))) {
|
||||
options.push('-o', `${key}=${value}`)
|
||||
}
|
||||
} catch (e) {
|
||||
|
|
Loading…
Add table
Reference in a new issue