Skip to content

Commit cec61fd

Browse files
committed
add support for moropo v1 api key
1 parent 555f33e commit cec61fd

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ inputs:
6868
maestro-version:
6969
description: 'Maestro version to run your flow against'
7070
required: false
71+
moropo-v1-api-key:
72+
description: 'API key for Moropo v1 integration'
73+
required: false
7174
name:
7275
description: 'A custom name for your upload (useful for tagging commits etc)'
7376
required: false

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "dcd-github-action",
33
"description": "run maestro tests on devicecloud.dev",
44
"author": "devicecloud.dev",
5-
"version": "1.3.7",
5+
"version": "1.3.8",
66
"main": "src/index.ts",
77
"license": "MIT",
88
"engines": {

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ const run = async (): Promise<void> => {
110110
x86Arch,
111111
runnerType,
112112
skipChromeOnboarding,
113+
moropoV1ApiKey,
113114
} = await getParameters();
114115

115116
const params: Record<string, any> = {
@@ -142,6 +143,7 @@ const run = async (): Promise<void> => {
142143
'runner-type': runnerType,
143144
'json-file': jsonFile,
144145
'skip-chrome-onboarding': skipChromeOnboarding,
146+
'moropo-v1-api-key': moropoV1ApiKey,
145147
};
146148

147149
let paramsString = Object.keys(params).reduce((acc, key) => {

src/methods/params.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export type Params = {
3232
runnerType?: string;
3333
jsonFile?: boolean;
3434
skipChromeOnboarding?: boolean;
35+
moropoV1ApiKey?: string;
3536
};
3637

3738
function getAndroidApiLevel(apiLevel?: string): number | undefined {
@@ -175,6 +176,9 @@ export async function getParameters(): Promise<Params> {
175176
const jsonFile = core.getInput('json-file', { required: false }) === 'true';
176177
const skipChromeOnboarding =
177178
core.getInput('skip-chrome-onboarding', { required: false }) === 'true';
179+
const moropoV1ApiKey = core.getInput('moropo-v1-api-key', {
180+
required: false,
181+
});
178182

179183
if (!(appFilePath !== '') !== (appBinaryId !== '')) {
180184
throw new Error('Either app-file or app-binary-id must be used');
@@ -219,5 +223,6 @@ export async function getParameters(): Promise<Params> {
219223
runnerType,
220224
jsonFile,
221225
skipChromeOnboarding,
226+
moropoV1ApiKey,
222227
};
223228
}

0 commit comments

Comments
 (0)