Files
osmedeus/test/testdata/workflows/debug-events/test-event-input.yaml
T
j3ssie 777fb7c2bf chore: update ui build artifacts and refactor event trigger input syntax
- Update Next.js build IDs and chunk hashes in workflow upload static files
- Replace deprecated 'input' field syntax with new exports-style variables in event triggers (e.g., 'Target: event_data.value' instead of type/field/name)
- Simplify parameter override syntax in test workflows (remove nested 'default' structure)
2026-01-24 16:24:50 +08:00

43 lines
1.2 KiB
YAML

name: test-event-input
kind: module
description: Test new event input syntax (exports-style Vars)
triggers:
- name: on-asset-vars
on: event
event:
# topic: "test.asset.vars"
topic: "*"
input:
# New exports-style syntax: variable_name: expression
# osmedeus eval 'generate_event("hackerone.com", "test.asset.vars", "cli", "subdomain", "docs.hackerone.com")'
Target: event_data.value
asset_type: event.type
source: event.source
description: trim(event_data.desc)
enabled: true
params:
- name: Target
required: true
steps:
- name: verify-vars
type: bash
commands:
- 'echo "target={{target}}"'
- 'echo "Target={{Target}}"'
- 'echo "TargetSpace={{TargetSpace}}"'
- 'echo "asset_type={{asset_type}}"'
- 'echo "source={{source}}"'
- 'echo "description={{description}}"'
- name: echo-envelope
type: bash
commands:
- 'echo "Full envelope: {{EventEnvelope}}"'
- 'echo "Topic: {{EventTopic}}"'
- 'echo "Source: {{EventSource}}"'
- 'echo "DataType: {{EventDataType}}"'
- 'echo "Timestamp: {{EventTimestamp}}"'
- 'echo "Data: {{EventData}}"'