A workflow receives a JSON array of deployment regions as the string output of a preparation job. A later matrix should create one job for each region. Which expression turns that output into matrix data?

Published
  1. Use toJSON(needs.prepare.outputs.regions) to parse the array.
  2. Use format to copy the JSON output string and expect formatting to deserialize it.
  3. Use fromJSON(needs.prepare.outputs.regions) when defining the region matrix.
  4. List the output string as one quoted matrix entry and expect automatic splitting.

Comments — 0