36 lines
441 B
Plaintext
36 lines
441 B
Plaintext
|
|
process foo {
|
|
input:
|
|
val(index)
|
|
|
|
output:
|
|
stdout emit: versions, topic: versions
|
|
|
|
script:
|
|
"""
|
|
echo 'foo: 0.1.0'
|
|
"""
|
|
}
|
|
|
|
process bar {
|
|
input:
|
|
val(index)
|
|
|
|
output:
|
|
stdout emit: versions, topic: versions
|
|
|
|
script:
|
|
"""
|
|
echo 'bar: 0.9.0'
|
|
"""
|
|
}
|
|
|
|
workflow {
|
|
channel.of( 1..3 ) | foo
|
|
channel.of( 1..3 ) | bar
|
|
|
|
channel.topic('versions')
|
|
| unique
|
|
| collectFile(name: 'versions.txt', sort: true, storeDir: '.')
|
|
}
|