Fix up the retrieval of the terms of use properties

This commit is contained in:
Pavlo Shevchenko 2024-03-19 17:35:44 +01:00 committed by daz
parent 81948bb85d
commit ae54f26235
No known key found for this signature in database

View File

@ -92,8 +92,7 @@ export function getBuildScanTermsOfUseAgree(): string {
*/
function getTermsOfUseProp(newPropName: string, oldPropName: string): string {
const newProp = core.getInput(newPropName)
core.info(`prop[${newPropName}] = ${newProp}`)
if (newProp.length !== 0) {
if (newProp !== '') {
return newProp
}
return core.getInput(oldPropName)