19109: test/fix for related bug, finding secondary files with expressions
[arvados.git] / sdk / cwl / tests / 19109-upload-secondary.cwl
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: Apache-2.0
4
5 cwlVersion: v1.2
6 class: Workflow
7
8 requirements:
9   InlineJavascriptRequirement: {}
10
11 inputs:
12   file1:
13     type: File?
14     secondaryFiles:
15       - pattern: .tbi
16         required: true
17   file2:
18     type: File
19     secondaryFiles:
20       - pattern: |
21           ${
22           return self.basename + '.tbi';
23           }
24         required: true
25 outputs:
26   out:
27     type: File
28     outputSource: cat/out
29   out2:
30     type: File
31     outputSource: cat2/out
32 steps:
33   cat:
34     in:
35       inp: file1
36     run: cat2.cwl
37     out: [out]
38   cat2:
39     in:
40       inp: file2
41     run: cat2.cwl
42     out: [out]