Use strings as default input values

This commit is contained in:
Jorge Capona 2020-10-28 18:59:05 -03:00
parent bed34a9575
commit 755cd39c9a
No known key found for this signature in database
GPG key ID: 2705768F429E3888
2 changed files with 6 additions and 6 deletions

View file

@ -7,23 +7,23 @@ inputs:
source_directory:
description: Directory where Debian sources are, relative to workspace
required: false
default: ./
default: "./"
artifacts_directory:
description: Directory where build artifacts will be placed, relative to workspace
required: false
default: ./
default: "./"
target_architectures:
description: Target architecture of Debian package to build
required: false
default: []
default: ""
dpkg_buildpackage_opts:
description: Options list provided to 'dpkg-buildpackage' as command line parameters (note that '-a' is automatically provided for target architectures specified by target_architectures)
required: false
default: [ "--no-sign", "-d" ]
default: "--no-sign, -d"
lintian_opts:
description: Options list provided to 'lintian' as command line parameters
required: false
default: []
default: ""
runs:
using: node12

View file

@ -35,7 +35,7 @@ async function main() {
// (Seems to not recognize that some packages are installed)
"-d"
]
const dpkgBuildPackageOpts = core.getInput("dpkg_buildpackage_opts") || defaultDpkgBuildPackageOpts
const dpkgBuildPackageOpts = core.getInput("dpkg_buildpackage_opts").replaceAll(" ", "").split(",") || defaultDpkgBuildPackageOpts
const lintianOpts = core.getInput("lintian_opts") || []
const workspaceDirectory = process.cwd()