mirror of
https://github.com/gradle/actions.git
synced 2025-04-21 18:29:18 +08:00
Fix up the retrieval of the terms of use properties
This commit is contained in:
parent
81948bb85d
commit
ae54f26235
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user