Skip to content

Commit 2ec334b

Browse files
committed
Update version to 1.3.9 and enhance README.md to clarify usage of 'flows' and 'workspace' parameters; update params.ts to support both inputs with precedence for 'flows'.
1 parent 5ab01cf commit 2ec334b

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,16 +69,18 @@ jobs:
6969

7070
# Custom workspace location
7171

72-
By default, the action is looking for a `.maestro` folder with Maestro flows in the root directory of the project. If you would like to customize this behaviour, you can override it with a `workspace` argument:
72+
By default, the action is looking for a `.maestro` folder with Maestro flows in the root directory of the project. If you would like to customize this behaviour, you can override it with either a `flows` or `workspace` argument:
7373

7474
```yaml
7575
- uses: devicecloud-dev/device-cloud-for-maestro@v1
7676
with:
7777
api-key: ${{ secrets.DCD_API_KEY }}
7878
app-file: app.zip
79-
workspace: myFlows/
79+
flows: myFlows/ # or workspace: myFlows/
8080
```
8181

82+
Both `flows` and `workspace` parameters serve the same purpose. If both are provided, `flows` takes precedence.
83+
8284
# Custom name
8385

8486
The run name will automatically be populated with the commit message.
@@ -479,7 +481,7 @@ Here's a complete example showing all available options:
479481
skip-chrome-onboarding: false # Skip Chrome onboarding screens (Android)
480482
481483
# Flow Configuration
482-
workspace: myFlows/
484+
flows: myFlows/ # or workspace: myFlows/ (flows takes precedence)
483485
exclude-flows: |
484486
tests/experimental
485487
include-tags: smoke,critical

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.8",
5+
"version": "1.3.9",
66
"main": "src/index.ts",
77
"license": "MIT",
88
"engines": {

src/methods/params.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,12 @@ export async function getParameters(): Promise<Params> {
118118
'https://api.devicecloud.dev';
119119
const apiKey = core.getInput('api-key', { required: true });
120120
const name = core.getInput('name', { required: false }) || getInferredName();
121-
const workspaceFolder = core.getInput('workspace', { required: false });
121+
122+
// Support both 'flows' and 'workspace' inputs (flows takes precedence if both are provided)
123+
const flowsInput = core.getInput('flows', { required: false });
124+
const workspaceInput = core.getInput('workspace', { required: false });
125+
const workspaceFolder = flowsInput || workspaceInput;
126+
122127
const async = core.getInput('async', { required: false }) === 'true';
123128
const androidApiLevelString = core.getInput('android-api-level', {
124129
required: false,

0 commit comments

Comments
 (0)