YAML parse transform action
Use case
An API has returned a YAML formatted string and you would like to convert it to a JSON object.
Overview
Parses a YAML string and returns the resulting data structure in JSON.

Parameters
Parameter
Description
Required
YAML Input
The YAML string to parse.
Usage
Results output
Result of example:
{
"jobs": {
"test": {
"steps": [
"checkout",
{
"run": "echo \"this is the test job\""
}
],
"docker": [
{
"image": "cimg/base:2023.03"
}
]
},
"build": {
"steps": [
"checkout",
{
"run": "echo \"this is the build job\""
}
],
"docker": [
{
"image": "cimg/base:2023.03"
}
]
}
},
"version": 2.1,
"workflows": {
"build_and_test": {
"jobs": [
"build",
"test"
]
}
}
}
Last updated
Was this helpful?