diff --git a/README.md b/README.md index 32a3710..a3968c8 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/StatusPoller.ts b/StatusPoller.ts index 5a047f0..8027753 100644 --- a/StatusPoller.ts +++ b/StatusPoller.ts @@ -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('')