Skip to content
This repository has been archived by the owner on Sep 29, 2023. It is now read-only.

Commit

Permalink
Store upload status and flow results in output (mobile-dev-inc#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
axelniklasson authored Aug 31, 2023
1 parent 2bc194f commit b56b3d9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,3 +187,11 @@ The default iOS version is 15.
app-file: app.zip
ios-version: 16
```

# Accessing output

The following output variables are set by the action and you can access them as part of `GITHUB_OUTPUT`.

- `MAESTRO_CLOUD_CONSOLE_URL` - link to the Maestro Cloud console
- `MAESTRO_CLOUD_UPLOAD_STATUS` - status of the Upload (available only in `async` mode)
- `MAESTRO_CLOUD_FLOW_RESULTS` - list of Flows and their results (available only in `async` mode)
3 changes: 3 additions & 0 deletions StatusPoller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ export default class StatusPoller {
info(`==== View details in the console ====\n`)
info(`${this.consoleUrl}`)

core.setOutput('MAESTRO_CLOUD_UPLOAD_STATUS', status)
core.setOutput('MAESTRO_CLOUD_FLOW_RESULTS', flows)

if (status === BenchmarkStatus.ERROR) {
const resultStr = getFailedFlowsCountStr(flows)
console.log('')
Expand Down

0 comments on commit b56b3d9

Please sign in to comment.