mirror of
https://github.com/j3ssie/osmedeus.git
synced 2026-08-24 16:42:28 +02:00
35 lines
660 B
YAML
35 lines
660 B
YAML
name: test-decision
|
|
kind: module
|
|
description: Test conditional step routing with decision
|
|
tags: test,decision,conditional
|
|
|
|
params:
|
|
- name: target
|
|
required: true
|
|
|
|
steps:
|
|
- name: check-condition
|
|
type: bash
|
|
command: echo "{{target}}"
|
|
exports:
|
|
target_value: "output"
|
|
decision:
|
|
switch: "{{target_value}}"
|
|
cases:
|
|
"skip":
|
|
goto: _end
|
|
"jump":
|
|
goto: final-step
|
|
|
|
- name: middle-step
|
|
type: bash
|
|
command: echo "middle executed"
|
|
exports:
|
|
middle_output: "output"
|
|
|
|
- name: final-step
|
|
type: bash
|
|
command: echo "final executed"
|
|
exports:
|
|
final_output: "output"
|