Skip to content

Commit

Permalink
Create mta.sw.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
rgolangh authored Nov 27, 2023
1 parent d291755 commit 0d55376
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions pipeline/workflows/mta/mta.sw.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
specVersion: "0.8"
id: mta
annotations:
- workflow-type/infrastructure
timeouts:
workflowExecTimeout:
duration: PT24H
start: restcall
functions:
- name: get
type: custom
operation: 'rest:get:https://pokeapi.co/api/v2/version/red'
states:
- name: restcall
type: operation
actions:
- functionRef:
refName: get
arguments:
color: .color
actionDataFilter:
toStateData: .pokemon
stateDataFilter:
output: '{moredata: $WORKFLOW.instanceId, id: .pokemon.id}'
transition: output
- name: output
type: inject
data:
msg: hi
stateDataFilter:
output: '{ message: .id, result: .id}'
end: true

0 comments on commit 0d55376

Please sign in to comment.