mirror of
https://github.com/gradle/actions.git
synced 2025-04-23 03:09:20 +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 {
|
function getTermsOfUseProp(newPropName: string, oldPropName: string): string {
|
||||||
const newProp = core.getInput(newPropName)
|
const newProp = core.getInput(newPropName)
|
||||||
core.info(`prop[${newPropName}] = ${newProp}`)
|
if (newProp !== '') {
|
||||||
if (newProp.length !== 0) {
|
|
||||||
return newProp
|
return newProp
|
||||||
}
|
}
|
||||||
return core.getInput(oldPropName)
|
return core.getInput(oldPropName)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user