Skip to content

Commit 4d88c45

Browse files
authored
Merge pull request #10 from ltamaster/master
Adding a WorkflowStep Waitfor/Sleep
2 parents 8d55a3b + 8346f6e commit 4d88c45

File tree

2 files changed

+27
-5
lines changed

2 files changed

+27
-5
lines changed

local-script/plugin.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ providers:
77
- name: nixy-local-workflow-step
88
service: WorkflowStep
99
title: 'Local Workflow Script'
10-
title: '*nixy / local-script / workflow'
10+
title: '*nixy / local-script'
1111
description: 'Run an inline script locally once for the workflow'
1212
plugin-type: script
1313
script-interpreter: /usr/bin/env bash
@@ -29,7 +29,7 @@ providers:
2929
required: false
3030
- name: nixy-local-node-step
3131
service: WorkflowNodeStep
32-
title: '*nixy / local-script / node'
32+
title: '*nixy / local-script'
3333
description: 'Run an inline script locally for each node'
3434
plugin-type: script
3535
script-interpreter: /usr/bin/env bash

waitfor/plugin.yaml

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,10 +225,10 @@ providers:
225225
title: maxtry
226226
description: "the maximum number of attempts to try"
227227
required: true
228-
- name: nixy-waitfor-sleep
229-
service: RemoteScriptNodeStep
228+
- name: nixy-waitfor-sleep-workflow-step
229+
service: WorkflowStep
230230
title: '*nixy / waitfor / sleep'
231-
description: 'wait for sleep to elapse'
231+
description: 'wait for sleep to elapse, it will run locally once for the workflow'
232232
plugin-type: script
233233
script-interpreter: /usr/bin/env bash
234234
script-file: sleep
@@ -247,3 +247,25 @@ providers:
247247
name: progress
248248
title: Progress?
249249
description: "Show progress with dot characters."
250+
- name: nixy-waitfor-sleep-workflow-node-step
251+
service: WorkflowNodeStep
252+
title: '*nixy / waitfor / sleep'
253+
description: 'wait for sleep to elapse, it will run locally once for each node'
254+
plugin-type: script
255+
script-interpreter: /usr/bin/env bash
256+
script-file: sleep
257+
script-args: ${config.interval} ${config.cycles} ${config.progress}
258+
config:
259+
- type: String
260+
name: interval
261+
title: Interval
262+
description: "the wait interval in seconds, minutes or hours. eg: 1s, 1m, 1h"
263+
required: true
264+
- type: String
265+
name: cycles
266+
title: Cycles
267+
description: "the number of sleep cycles"
268+
- type: Boolean
269+
name: progress
270+
title: Progress?
271+
description: "Show progress with dot characters."

0 commit comments

Comments
 (0)