Skip to content

Instantly share code, notes, and snippets.

@k1LoW
Last active April 19, 2024 10:28
Show Gist options
  • Save k1LoW/bbe1bf4c0d66aeb44304f60a57713f00 to your computer and use it in GitHub Desktop.
Save k1LoW/bbe1bf4c0d66aeb44304f60a57713f00 to your computer and use it in GitHub Desktop.
desc: Example
vars:
actions: [
{
"type": "first",
"value": 1
},
{
"type": "second",
"value": 2
},
{
"type": "third",
"value": 3
}
]
steps:
-
desc: test always second
test: 'find(vars.actions, {.type == "second"}).value == 2'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment