mirror of
https://github.com/gradle/actions.git
synced 2025-04-23 03:09:20 +08:00
Debug failing tests
This commit is contained in:
parent
4607bb2146
commit
81948bb85d
@ -27,6 +27,9 @@ function verifyTermsOfUseAgreement(): boolean {
|
|||||||
|
|
||||||
function maybeExportVariable(variableName: string, value: unknown): void {
|
function maybeExportVariable(variableName: string, value: unknown): void {
|
||||||
if (!process.env[variableName]) {
|
if (!process.env[variableName]) {
|
||||||
|
core.info(`Exporting variable ${variableName} with value ${value}`)
|
||||||
core.exportVariable(variableName, value)
|
core.exportVariable(variableName, value)
|
||||||
|
} else {
|
||||||
|
core.info(`Variable with name ${variableName} is already set to ${process.env[variableName]}`)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -92,6 +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.length !== 0) {
|
if (newProp.length !== 0) {
|
||||||
return newProp
|
return newProp
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user