Files
osmedeus/test/testdata/workflows/test-flowname-inline.yaml
T
j3ssie 1a8ab856fa feat: add empty_target preference and FlowName variable, optimize concurrent file sync
- Add empty_target preference to allow running workflows without explicit target
- Implement FlowName template variable for module context awareness
- Optimize cdnDelete, SyncUpload, SyncDownload with worker pool concurrency
- Load workflow preferences early for --empty-target CLI flag support
- Add unit tests for preferences and E2E tests for FlowName functionality
- Update linter to recognize ModuleName and FlowName as built-in variables
2026-01-28 18:47:45 +08:00

46 lines
1.2 KiB
YAML

name: test-flowname-inline
kind: flow
description: Test flow demonstrating FlowName variable with inline modules
params:
- name: target
required: true
modules:
- name: greet-module
description: Simple greeting module that outputs flow name
inline_path: true
steps:
- name: greet
type: bash
command: echo "Hello from {{FlowName}}, target={{target}}"
exports:
greeting: "{{StepOutput}}"
- name: info-module
description: Displays system info with flow name
inline_path: true
depends_on:
- greet-module
steps:
- name: show-info
type: bash
command: echo "Target is {{target}}, greeting was {{greeting}}, FlowName={{FlowName}}"
- name: date-step
type: bash
command: date +%Y-%m-%d
exports:
current_date: "{{StepOutput}}"
- name: final-module
description: Final summary module verifying FlowName
inline_path: true
depends_on:
- info-module
steps:
- name: summary
type: bash
command: echo "Flow {{FlowName}} completed on {{current_date}} for {{target}}"
exports:
final_output: "{{StepOutput}}"