Skip to content

Commit 3a45359

Browse files
more loggin
1 parent 40173a3 commit 3a45359

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

dist/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58062,10 +58062,11 @@ async function GetProjectDetails(credential, xcodeVersion) {
5806258062
cFBundleShortVersionString = `${major}.${minor}.${revision}`;
5806358063
infoPlist['CFBundleShortVersionString'] = cFBundleShortVersionString.toString();
5806458064
try {
58065+
core.info(`Updating Info.plist with CFBundleShortVersionString: ${cFBundleShortVersionString}`);
5806558066
await fs.promises.writeFile(infoPlistPath, plist.build(infoPlist));
5806658067
}
5806758068
catch (error) {
58068-
(0, utilities_1.log)(`Failed to update Info.plist!\n${error}`, 'error');
58069+
throw new Error(`Failed to update Info.plist!\n${error}`);
5806958070
}
5807058071
}
5807158072
else {
@@ -58090,7 +58091,7 @@ async function GetProjectDetails(credential, xcodeVersion) {
5809058091
}
5809158092
if (projectRef.bundleVersion <= bundleVersion) {
5809258093
projectRef.bundleVersion = bundleVersion + 1;
58093-
core.debug(`Auto Incremented bundle version ==> ${projectRef.bundleVersion}`);
58094+
core.info(`Auto Incremented bundle version ==> ${projectRef.bundleVersion}`);
5809458095
infoPlist['CFBundleVersion'] = projectRef.bundleVersion.toString();
5809558096
try {
5809658097
await fs.promises.writeFile(infoPlistPath, plist.build(infoPlist));

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/xcode.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,10 @@ export async function GetProjectDetails(credential: AppleCredential, xcodeVersio
8989
cFBundleShortVersionString = `${major}.${minor}.${revision}`;
9090
infoPlist['CFBundleShortVersionString'] = cFBundleShortVersionString.toString();
9191
try {
92+
core.info(`Updating Info.plist with CFBundleShortVersionString: ${cFBundleShortVersionString}`);
9293
await fs.promises.writeFile(infoPlistPath, plist.build(infoPlist));
9394
} catch (error) {
94-
log(`Failed to update Info.plist!\n${error}`, 'error');
95+
throw new Error(`Failed to update Info.plist!\n${error}`);
9596
}
9697
} else {
9798
throw new Error(`Invalid CFBundleShortVersionString format: ${cFBundleShortVersionString}`);
@@ -126,7 +127,7 @@ export async function GetProjectDetails(credential: AppleCredential, xcodeVersio
126127
}
127128
if (projectRef.bundleVersion <= bundleVersion) {
128129
projectRef.bundleVersion = bundleVersion + 1;
129-
core.debug(`Auto Incremented bundle version ==> ${projectRef.bundleVersion}`);
130+
core.info(`Auto Incremented bundle version ==> ${projectRef.bundleVersion}`);
130131
infoPlist['CFBundleVersion'] = projectRef.bundleVersion.toString();
131132
try {
132133
await fs.promises.writeFile(infoPlistPath, plist.build(infoPlist));

0 commit comments

Comments
 (0)