Skip to content

Commit c0fd0e6

Browse files
only print info.plist once
1 parent f2f4623 commit c0fd0e6

3 files changed

Lines changed: 5 additions & 7 deletions

File tree

dist/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58042,7 +58042,6 @@ async function GetProjectDetails(credential, xcodeVersion) {
5804258042
let infoPlistContent;
5804358043
try {
5804458044
infoPlistContent = await fs.promises.readFile(infoPlistHandle, 'utf8');
58045-
core.info(`----- Info.plist content: -----\n${infoPlistContent}\n-----------------------------------`);
5804658045
}
5804758046
finally {
5804858047
await infoPlistHandle.close();
@@ -58081,14 +58080,14 @@ async function GetProjectDetails(credential, xcodeVersion) {
5808158080
const plistHandle = await fs.promises.open(infoPlistPath, fs.constants.O_RDONLY);
5808258081
try {
5808358082
core.info(`Updated Info.plist with CFBundleVersion: ${projectRef.bundleVersion}`);
58084-
const updatedInfoPlistContent = await fs.promises.readFile(plistHandle, 'utf8');
58085-
core.info(`----- Updated Info.plist content: -----\n${updatedInfoPlistContent}\n--------------------------------`);
58083+
infoPlistContent = await fs.promises.readFile(plistHandle, 'utf8');
5808658084
}
5808758085
finally {
5808858086
await plistHandle.close();
5808958087
}
5809058088
}
5809158089
}
58090+
core.info(`----- Info.plist content: -----\n${infoPlistContent}\n-----------------------------------`);
5809258091
return projectRef;
5809358092
}
5809458093
async function parseBuildSettings(projectPath, scheme) {

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: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ export async function GetProjectDetails(credential: AppleCredential, xcodeVersio
6666
let infoPlistContent: string;
6767
try {
6868
infoPlistContent = await fs.promises.readFile(infoPlistHandle, 'utf8');
69-
core.info(`----- Info.plist content: -----\n${infoPlistContent}\n-----------------------------------`);
7069
} finally {
7170
await infoPlistHandle.close();
7271
}
@@ -112,13 +111,13 @@ export async function GetProjectDetails(credential: AppleCredential, xcodeVersio
112111
const plistHandle = await fs.promises.open(infoPlistPath, fs.constants.O_RDONLY);
113112
try {
114113
core.info(`Updated Info.plist with CFBundleVersion: ${projectRef.bundleVersion}`);
115-
const updatedInfoPlistContent = await fs.promises.readFile(plistHandle, 'utf8');
116-
core.info(`----- Updated Info.plist content: -----\n${updatedInfoPlistContent}\n--------------------------------`);
114+
infoPlistContent = await fs.promises.readFile(plistHandle, 'utf8');
117115
} finally {
118116
await plistHandle.close();
119117
}
120118
}
121119
}
120+
core.info(`----- Info.plist content: -----\n${infoPlistContent}\n-----------------------------------`);
122121
return projectRef;
123122
}
124123

0 commit comments

Comments
 (0)