Skip to content

Commit

Permalink
[AUTO] Update generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
sersoft-bot committed Oct 24, 2022
1 parent 27e02a7 commit 085b0b3
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions dist/index.js
Expand Up @@ -92,7 +92,9 @@ function allArgumentStrings(args, useResolvedValue = true, escapeValue = false)
async function runXcodebuild(args, xcprettyInv) {
var _a;
const xcodebuildOut = xcprettyInv ? 'pipe' : process.stdout;
const xcodebuild = (0, child_process_1.spawn)('xcodebuild', allArgumentStrings(args), { stdio: ['inherit', xcodebuildOut, process.stderr] });
const xcodebuild = (0, child_process_1.spawn)('xcodebuild', allArgumentStrings(args), {
stdio: ['inherit', xcodebuildOut, process.stderr],
});
let finishedPromise = new Promise((resolve, reject) => {
xcodebuild.on('error', reject);
xcodebuild.on('exit', (exitCode, signal) => {
Expand All @@ -105,7 +107,9 @@ async function runXcodebuild(args, xcprettyInv) {
});
});
if (xcprettyInv) {
const xcpretty = (0, child_process_1.spawn)('xcpretty', allArgumentStrings(xcprettyInv.args), { stdio: ['pipe', process.stdout, process.stderr] });
const xcpretty = (0, child_process_1.spawn)('xcpretty', allArgumentStrings(xcprettyInv.args), {
stdio: ['pipe', process.stdout, process.stderr],
});
(_a = xcodebuild.stdout) === null || _a === void 0 ? void 0 : _a.pipe(xcpretty.stdin);
finishedPromise = finishedPromise.then((xcodeCode) => new Promise((resolve, reject) => {
xcpretty.on('error', reject);
Expand Down Expand Up @@ -140,7 +144,7 @@ async function main() {
|| (workspace && project)
|| (workspace && spmPackage)
|| (project && spmPackage)) {
throw new Error("Either `project`, `workspace` or `spm-package-path` must be set, but they are mutually exclusive!");
throw new Error('Either `project`, `workspace` or `spm-package-path` must be set, but they are mutually exclusive!');
}
const scheme = core.getInput('scheme', { required: !!workspace || !!spmPackage });
function _pushArg(name, value) {
Expand All @@ -163,15 +167,15 @@ async function main() {
if (values)
values.forEach(value => _pushArgWithValue(argName !== null && argName !== void 0 ? argName : inputName, value, {
isPath: opts === null || opts === void 0 ? void 0 : opts.isPath,
skipEmptyValues: true
skipEmptyValues: true,
}));
}
else {
let value = core.getInput(inputName);
if (value)
_pushArgWithValue(argName !== null && argName !== void 0 ? argName : inputName, value, {
isPath: opts === null || opts === void 0 ? void 0 : opts.isPath,
skipEmptyValues: false
skipEmptyValues: false,
});
}
}
Expand Down

0 comments on commit 085b0b3

Please sign in to comment.