Skip to content

Commit cfb0eef

Browse files
break
1 parent 06bd759 commit cfb0eef

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

dist/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57699,11 +57699,13 @@ async function pollForValidBuild(project, maxRetries = 60, interval = 30) {
5769957699
switch ((_a = build.attributes) === null || _a === void 0 ? void 0 : _a.processingState) {
5770057700
case 'VALID':
5770157701
if (((_b = build.attributes) === null || _b === void 0 ? void 0 : _b.version) === project.bundleVersion) {
57702+
core.info(`Build ${build.attributes.version} is valid`);
5770257703
return build;
5770357704
}
5770457705
else {
5770557706
core.info(`Build ${build.attributes.version} is valid but not the latest version ${project.bundleVersion}!`);
5770657707
}
57708+
break;
5770757709
case 'FAILED':
5770857710
case 'INVALID':
5770957711
throw new Error(`Build ${build.attributes.version} is ${build.attributes.processingState}!`);

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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,10 +255,12 @@ async function pollForValidBuild(project: XcodeProject, maxRetries: number = 60,
255255
switch (build.attributes?.processingState) {
256256
case 'VALID':
257257
if (build.attributes?.version === project.bundleVersion) {
258+
core.info(`Build ${build.attributes.version} is valid`);
258259
return build;
259260
} else {
260261
core.info(`Build ${build.attributes.version} is valid but not the latest version ${project.bundleVersion}!`);
261262
}
263+
break;
262264
case 'FAILED':
263265
case 'INVALID':
264266
throw new Error(`Build ${build.attributes.version} is ${build.attributes.processingState}!`);

0 commit comments

Comments
 (0)