@@ -57684,10 +57684,8 @@ async function pollForValidBuild(project, maxRetries = 60, interval = 30) {
5768457684 core.debug(`Polling build validation...`);
5768557685 await new Promise(resolve => setTimeout(resolve, interval * 1000));
5768657686 let retries = 0;
57687- let lastMessage = '';
5768857687 while (retries < maxRetries) {
57689- lastMessage = `Polling for build... Attempt ${retries}/${maxRetries}`;
57690- core.debug(lastMessage);
57688+ core.info(`Polling for build... Attempt ${retries}/${maxRetries}`);
5769157689 let { preReleaseVersion, build } = await getLastPreReleaseVersionAndBuild(project);
5769257690 if (preReleaseVersion) {
5769357691 if (!build) {
@@ -57699,32 +57697,30 @@ async function pollForValidBuild(project, maxRetries = 60, interval = 30) {
5769957697 switch ((_b = build.attributes) === null || _b === void 0 ? void 0 : _b.processingState) {
5770057698 case 'VALID':
5770157699 if (normalizedBuildVersion === normalizedProjectVersion) {
57702- core.debug (`Build ${build.attributes.version} is VALID`);
57700+ core.info (`Build ${build.attributes.version} is VALID`);
5770357701 return build;
5770457702 }
5770557703 else {
57706- lastMessage = `Build ${build.attributes.version} is VALID but not the latest version ${project.bundleVersion}!`;
57704+ core.info( `Build ${build.attributes.version} is VALID but not the latest version ${project.bundleVersion}!`) ;
5770757705 }
5770857706 break;
5770957707 case 'FAILED':
5771057708 case 'INVALID':
5771157709 throw new Error(`Build ${build.attributes.version} === ${build.attributes.processingState}!`);
5771257710 default:
57713- lastMessage = `Build ${build.attributes.version} is ${build.attributes.processingState}...`;
57711+ core.info( `Build ${build.attributes.version} is ${build.attributes.processingState}...`) ;
5771457712 break;
5771557713 }
5771657714 }
5771757715 else {
57718- lastMessage = `No build found for ${(_c = preReleaseVersion.attributes) === null || _c === void 0 ? void 0 : _c.version}!`;
57716+ core.info( `No build found for ${(_c = preReleaseVersion.attributes) === null || _c === void 0 ? void 0 : _c.version}!`) ;
5771957717 }
5772057718 }
5772157719 else {
57722- lastMessage = `No pre-release version found for ${project.versionString}!`;
57720+ core.info( `No pre-release version found for ${project.versionString}!`) ;
5772357721 }
57724- core.debug(lastMessage);
5772557722 await new Promise(resolve => setTimeout(resolve, interval * 1000));
5772657723 }
57727- core.error(lastMessage);
5772857724 throw new Error('Timed out waiting for valid build!');
5772957725}
5773057726async function UpdateTestDetails(project, whatsNew) {
0 commit comments