2
0
Fork 0
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:
blmage 2023-02-10 17:13:44 +01:00
parent eed58e3496
commit 098e6b1c9f
2 changed files with 6 additions and 3 deletions

View file

@ -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'`.

View file

@ -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) {