@@ -32535,24 +32535,30 @@ const params_1 = __nccwpck_require__(5966);
3253532535const child_process_1 = __nccwpck_require__(2081);
3253632536const run = () => __awaiter(void 0, void 0, void 0, function* () {
3253732537 try {
32538- const { apiKey, apiUrl, appFilePath, workspaceFolder, env, async, androidApiLevel, iOSVersion, includeTags , excludeTags, appBinaryId, androidDevice, iosDevice, excludeFlows, googlePlay , name, } = yield (0, params_1.getParameters)();
32538+ const { additionalAppBinaryIds, additionalAppFiles, androidApiLevel, androidDevice, apiKey, apiUrl, appBinaryId, appFilePath, async, deviceLocale, downloadArtifacts, env, excludeFlows , excludeTags, googlePlay, includeTags, iOSVersion, iosDevice, maestroVersion , name, orientation, workspaceFolder , } = yield (0, params_1.getParameters)();
3253932539 const params = {
32540- 'app-file': appFilePath,
32541- flows: workspaceFolder,
32540+ 'additional-app-binary-ids': additionalAppBinaryIds,
32541+ 'additional-app-files': additionalAppFiles,
32542+ 'android-api-level': androidApiLevel,
32543+ 'android-device': androidDevice,
3254232544 'api-key': apiKey,
32543- 'app-binary-id': appBinaryId,
32544- 'include-tags': includeTags,
32545- 'exclude-tags': excludeTags,
32546- env,
3254732545 'api-url': apiUrl,
32546+ 'app-binary-id': appBinaryId,
32547+ 'app-file': appFilePath,
3254832548 async,
32549- 'android-api-level': androidApiLevel,
32550- 'ios-version': iOSVersion,
32551- 'android-device': androidDevice,
32552- 'ios-device': iosDevice,
32549+ 'device-locale': deviceLocale,
32550+ 'download-artifacts': downloadArtifacts,
32551+ env,
3255332552 'exclude-flows': excludeFlows,
32553+ 'exclude-tags': excludeTags,
32554+ flows: workspaceFolder,
3255432555 'google-play': googlePlay,
32556+ 'include-tags': includeTags,
32557+ 'ios-device': iosDevice,
32558+ 'ios-version': iOSVersion,
32559+ 'maestro-version': maestroVersion,
3255532560 name,
32561+ orientation,
3255632562 };
3255732563 const paramsString = Object.keys(params).reduce((acc, key) => {
3255832564 return params[key] ? `${acc} --${key} "${params[key]}"` : acc;
@@ -32693,6 +32699,23 @@ function getInferredName() {
3269332699 }
3269432700 return github.context.sha;
3269532701}
32702+ function parseOrientation(orientation) {
32703+ if (!orientation)
32704+ return undefined;
32705+ const value = parseInt(orientation);
32706+ if ([0, 90, 180, 270].includes(value)) {
32707+ return value;
32708+ }
32709+ throw new Error(`Invalid orientation: ${orientation}. Must be 0, 90, 180, or 270`);
32710+ }
32711+ function parseDownloadArtifacts(value) {
32712+ if (!value)
32713+ return undefined;
32714+ if (value !== 'ALL' && value !== 'FAILED') {
32715+ throw new Error(`Invalid download-artifacts value: ${value}. Must be ALL or FAILED`);
32716+ }
32717+ return value;
32718+ }
3269632719function getParameters() {
3269732720 return __awaiter(this, void 0, void 0, function* () {
3269832721 const apiUrl = core.getInput('api-url', { required: false }) ||
@@ -32713,6 +32736,12 @@ function getParameters() {
3271332736 const iosDevice = parseIOSDevice(core.getInput('ios-device', { required: false }));
3271432737 const excludeFlows = core.getInput('exclude-flows', { required: false });
3271532738 const googlePlay = core.getInput('google-play', { required: false }) === 'true';
32739+ const additionalAppBinaryIds = parseTags(core.getInput('additional-app-binary-ids', { required: false }));
32740+ const additionalAppFiles = parseTags(core.getInput('additional-app-files', { required: false }));
32741+ const deviceLocale = core.getInput('device-locale', { required: false });
32742+ const downloadArtifacts = parseDownloadArtifacts(core.getInput('download-artifacts', { required: false }));
32743+ const maestroVersion = core.getInput('maestro-version', { required: false });
32744+ const orientation = parseOrientation(core.getInput('orientation', { required: false }));
3271632745 if (!(appFilePath !== '') !== (appBinaryId !== '')) {
3271732746 throw new Error('Either app-file or app-binary-id must be used');
3271832747 }
@@ -32738,6 +32767,12 @@ function getParameters() {
3273832767 iosDevice,
3273932768 excludeFlows,
3274032769 googlePlay,
32770+ additionalAppBinaryIds,
32771+ additionalAppFiles,
32772+ deviceLocale,
32773+ downloadArtifacts,
32774+ maestroVersion,
32775+ orientation,
3274132776 };
3274232777 });
3274332778}
0 commit comments