Debug failing tests

This commit is contained in:
Pavlo Shevchenko 2024-03-19 17:18:22 +01:00 committed by daz
parent 4607bb2146
commit 81948bb85d
No known key found for this signature in database
2 changed files with 4 additions and 0 deletions

View File

@ -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]}`)
} }
} }

View File

@ -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
} }