Skip to content

Commit 31b3b49

Browse files
fix
1 parent 50525ef commit 31b3b49

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

dist/index.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57640,7 +57640,9 @@ async function GetAppId(project) {
5764057640
var _a, _b;
5764157641
await getOrCreateClient(project);
5764257642
const { data: response, error } = await appStoreConnectClient.api.AppsService.appsGetCollection({
57643-
query: { 'filter[bundleId]': [project.bundleId] }
57643+
query: {
57644+
'filter[bundleId]': [project.bundleId]
57645+
}
5764457646
});
5764557647
if (error) {
5764657648
checkAuthError(error);
@@ -57883,12 +57885,11 @@ async function UpdateTestDetails(project, whatsNew) {
5788357885
await updateBetaBuildLocalization(betaBuildLocalization, whatsNew);
5788457886
}
5788557887
const testGroups = core.getInput('test-groups');
57886-
core.info(`Adding Beta groups: ${testGroups}`);
57887-
if (!testGroups) {
57888-
return;
57888+
if (testGroups) {
57889+
core.info(`Adding Beta groups: ${testGroups}`);
57890+
const testGroupNames = testGroups.split(',').map(group => group.trim());
57891+
await AddBuildToTestGroups(project, build, testGroupNames);
5788957892
}
57890-
const testGroupNames = testGroups.split(',').map(group => group.trim());
57891-
await AddBuildToTestGroups(project, build, testGroupNames);
5789257893
const submitForReview = core.getInput('submit-for-review');
5789357894
if (submitForReview) {
5789457895
core.info(`Submitting for review...`);

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: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -303,10 +303,11 @@ export async function UpdateTestDetails(project: XcodeProject, whatsNew: string)
303303
await updateBetaBuildLocalization(betaBuildLocalization, whatsNew);
304304
}
305305
const testGroups = core.getInput('test-groups');
306-
core.info(`Adding Beta groups: ${testGroups}`);
307-
if (!testGroups) { return; }
308-
const testGroupNames = testGroups.split(',').map(group => group.trim());
309-
await AddBuildToTestGroups(project, build, testGroupNames);
306+
if (testGroups) {
307+
core.info(`Adding Beta groups: ${testGroups}`);
308+
const testGroupNames = testGroups.split(',').map(group => group.trim());
309+
await AddBuildToTestGroups(project, build, testGroupNames);
310+
}
310311
const submitForReview = core.getInput('submit-for-review');
311312
if (submitForReview) {
312313
core.info(`Submitting for review...`);

0 commit comments

Comments
 (0)