Skip to content

Commit 2f2f88c

Browse files
authored
Merge pull request #35 from common-workflow-language/secfile-ordering
Unify order of secondaryFile pattern processing
2 parents 5f3980b + 27de674 commit 2f2f88c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Process.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -900,12 +900,12 @@ $graph:
900900
it specifies that the following pattern should be applied to the path
901901
of the primary file to yield a filename relative to the primary File:
902902
903-
1. If string begins with one or more caret `^` characters, for each
903+
1. If string ends with `?` character, remove the last `?` and mark
904+
the resulting secondary file as optional.
905+
2. If string begins with one or more caret `^` characters, for each
904906
caret, remove the last file extension from the path (the last
905907
period `.` and all following characters). If there are no file
906908
extensions, the path is unchanged.
907-
2. If string ends with `?` character, remove the last `?` and mark
908-
the resulting secondary file as optional.
909909
3. Append the remainder of the string to the end of the file path.
910910
- name: required
911911
type: ["null", boolean, string, Expression]

0 commit comments

Comments
 (0)