Skip to content

Commit c8f07c5

Browse files
log everything
1 parent 256a8ec commit c8f07c5

3 files changed

Lines changed: 13 additions & 21 deletions

File tree

dist/index.js

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -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
}
5773057726
async function UpdateTestDetails(project, whatsNew) {

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/AppStoreConnectClient.ts

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -240,10 +240,8 @@ async function pollForValidBuild(project: XcodeProject, maxRetries: number = 60,
240240
core.debug(`Polling build validation...`);
241241
await new Promise(resolve => setTimeout(resolve, interval * 1000));
242242
let retries = 0;
243-
let lastMessage = '';
244243
while (retries < maxRetries) {
245-
lastMessage = `Polling for build... Attempt ${retries}/${maxRetries}`;
246-
core.debug(lastMessage);
244+
core.info(`Polling for build... Attempt ${retries}/${maxRetries}`);
247245
let { preReleaseVersion, build } = await getLastPreReleaseVersionAndBuild(project);
248246
if (preReleaseVersion) {
249247
if (!build) {
@@ -255,29 +253,27 @@ async function pollForValidBuild(project: XcodeProject, maxRetries: number = 60,
255253
switch (build.attributes?.processingState) {
256254
case 'VALID':
257255
if (normalizedBuildVersion === normalizedProjectVersion) {
258-
core.debug(`Build ${build.attributes.version} is VALID`);
256+
core.info(`Build ${build.attributes.version} is VALID`);
259257
return build;
260258
} else {
261-
lastMessage = `Build ${build.attributes.version} is VALID but not the latest version ${project.bundleVersion}!`;
259+
core.info(`Build ${build.attributes.version} is VALID but not the latest version ${project.bundleVersion}!`);
262260
}
263261
break;
264262
case 'FAILED':
265263
case 'INVALID':
266264
throw new Error(`Build ${build.attributes.version} === ${build.attributes.processingState}!`);
267265
default:
268-
lastMessage = `Build ${build.attributes.version} is ${build.attributes.processingState}...`;
266+
core.info(`Build ${build.attributes.version} is ${build.attributes.processingState}...`);
269267
break;
270268
}
271269
} else {
272-
lastMessage = `No build found for ${preReleaseVersion.attributes?.version}!`;
270+
core.info(`No build found for ${preReleaseVersion.attributes?.version}!`);
273271
}
274272
} else {
275-
lastMessage = `No pre-release version found for ${project.versionString}!`;
273+
core.info(`No pre-release version found for ${project.versionString}!`);
276274
}
277-
core.debug(lastMessage);
278275
await new Promise(resolve => setTimeout(resolve, interval * 1000));
279276
}
280-
core.error(lastMessage);
281277
throw new Error('Timed out waiting for valid build!');
282278
}
283279

0 commit comments

Comments
 (0)