Use strings as default input values
This commit is contained in:
parent
bed34a9575
commit
755cd39c9a
10
action.yml
10
action.yml
|
@ -7,23 +7,23 @@ inputs:
|
||||||
source_directory:
|
source_directory:
|
||||||
description: Directory where Debian sources are, relative to workspace
|
description: Directory where Debian sources are, relative to workspace
|
||||||
required: false
|
required: false
|
||||||
default: ./
|
default: "./"
|
||||||
artifacts_directory:
|
artifacts_directory:
|
||||||
description: Directory where build artifacts will be placed, relative to workspace
|
description: Directory where build artifacts will be placed, relative to workspace
|
||||||
required: false
|
required: false
|
||||||
default: ./
|
default: "./"
|
||||||
target_architectures:
|
target_architectures:
|
||||||
description: Target architecture of Debian package to build
|
description: Target architecture of Debian package to build
|
||||||
required: false
|
required: false
|
||||||
default: []
|
default: ""
|
||||||
dpkg_buildpackage_opts:
|
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)
|
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
|
required: false
|
||||||
default: [ "--no-sign", "-d" ]
|
default: "--no-sign, -d"
|
||||||
lintian_opts:
|
lintian_opts:
|
||||||
description: Options list provided to 'lintian' as command line parameters
|
description: Options list provided to 'lintian' as command line parameters
|
||||||
required: false
|
required: false
|
||||||
default: []
|
default: ""
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: node12
|
using: node12
|
||||||
|
|
2
main.js
2
main.js
|
@ -35,7 +35,7 @@ async function main() {
|
||||||
// (Seems to not recognize that some packages are installed)
|
// (Seems to not recognize that some packages are installed)
|
||||||
"-d"
|
"-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 lintianOpts = core.getInput("lintian_opts") || []
|
||||||
|
|
||||||
const workspaceDirectory = process.cwd()
|
const workspaceDirectory = process.cwd()
|
||||||
|
|
Loading…
Reference in a new issue