Skip to content

unity-xcode-builder@v1.3.1 #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 18 additions & 19 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57931,35 +57931,34 @@ async function autoNotifyBetaUsers(project, build) {
await getOrCreateClient(project);
let buildBetaDetail = null;
if (!((_a = build.relationships) === null || _a === void 0 ? void 0 : _a.buildBetaDetail)) {
buildBetaDetail = await getBetaAppBuildSubmissionDetails(project, build);
buildBetaDetail = await getBetaAppBuildSubmissionDetails(build);
}
else {
buildBetaDetail = build.relationships.buildBetaDetail.data;
}
if (!((_b = buildBetaDetail.attributes) === null || _b === void 0 ? void 0 : _b.autoNotifyEnabled)) {
buildBetaDetail.attributes.autoNotifyEnabled = true;
}
const payload = {
path: { id: buildBetaDetail.id },
body: {
data: {
id: buildBetaDetail.id,
type: 'buildBetaDetails',
attributes: {
autoNotifyEnabled: buildBetaDetail.attributes.autoNotifyEnabled
const payload = {
path: { id: buildBetaDetail.id },
body: {
data: {
id: buildBetaDetail.id,
type: 'buildBetaDetails',
attributes: {
autoNotifyEnabled: true
}
}
}
};
const { data: response, error } = await appStoreConnectClient.api.BuildBetaDetailsService.buildBetaDetailsUpdateInstance(payload);
if (error) {
checkAuthError(error);
throw new Error(`Error updating beta build details: ${JSON.stringify(error, null, 2)}`);
}
};
const { data: response, error } = await appStoreConnectClient.api.BuildBetaDetailsService.buildBetaDetailsUpdateInstance(payload);
if (error) {
checkAuthError(error);
throw new Error(`Error updating beta build details: ${JSON.stringify(error, null, 2)}`);
const responseJson = JSON.stringify(response, null, 2);
(0, utilities_1.log)(responseJson);
}
const responseJson = JSON.stringify(response, null, 2);
(0, utilities_1.log)(responseJson);
}
async function getBetaAppBuildSubmissionDetails(project, build) {
async function getBetaAppBuildSubmissionDetails(build) {
const payload = {
query: {
"filter[build]": [build.id],
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "unity-xcode-builder",
"version": "1.3.0",
"version": "1.3.1",
"description": "A GitHub Action to build, archive, and upload Unity exported xcode projects.",
"author": "buildalon",
"license": "MIT",
Expand All @@ -25,7 +25,7 @@
"uuid": "^10.0.0"
},
"devDependencies": {
"@types/node": "^22.15.18",
"@types/node": "^22.15.21",
"@types/plist": "^3.0.5",
"@types/semver": "^7.7.0",
"@types/uuid": "^10.0.0",
Expand Down
37 changes: 18 additions & 19 deletions src/AppStoreConnectClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -352,35 +352,34 @@ async function autoNotifyBetaUsers(project: XcodeProject, build: Build): Promise
await getOrCreateClient(project);
let buildBetaDetail: BuildBetaDetail = null;
if (!build.relationships?.buildBetaDetail) {
buildBetaDetail = await getBetaAppBuildSubmissionDetails(project, build);
buildBetaDetail = await getBetaAppBuildSubmissionDetails(build);
} else {
buildBetaDetail = build.relationships.buildBetaDetail.data;
}
if (!buildBetaDetail.attributes?.autoNotifyEnabled) {
buildBetaDetail.attributes.autoNotifyEnabled = true;
}
const payload: BuildBetaDetailsUpdateInstanceData = {
path: { id: buildBetaDetail.id },
body: {
data: {
id: buildBetaDetail.id,
type: 'buildBetaDetails',
attributes: {
autoNotifyEnabled: buildBetaDetail.attributes.autoNotifyEnabled
const payload: BuildBetaDetailsUpdateInstanceData = {
path: { id: buildBetaDetail.id },
body: {
data: {
id: buildBetaDetail.id,
type: 'buildBetaDetails',
attributes: {
autoNotifyEnabled: true
}
}
}
};
const { data: response, error } = await appStoreConnectClient.api.BuildBetaDetailsService.buildBetaDetailsUpdateInstance(payload);
if (error) {
checkAuthError(error);
throw new Error(`Error updating beta build details: ${JSON.stringify(error, null, 2)}`);
}
};
const { data: response, error } = await appStoreConnectClient.api.BuildBetaDetailsService.buildBetaDetailsUpdateInstance(payload);
if (error) {
checkAuthError(error);
throw new Error(`Error updating beta build details: ${JSON.stringify(error, null, 2)}`);
const responseJson = JSON.stringify(response, null, 2);
log(responseJson);
}
const responseJson = JSON.stringify(response, null, 2);
log(responseJson);
}

async function getBetaAppBuildSubmissionDetails(project: XcodeProject, build: Build): Promise<BuildBetaDetail> {
async function getBetaAppBuildSubmissionDetails(build: Build): Promise<BuildBetaDetail> {
const payload: BuildBetaDetailsGetCollectionData = {
query: {
"filter[build]": [build.id],
Expand Down
Loading