Skip to content

Commit

Permalink
add doc for not merging arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
kota65535 committed Jul 13, 2022
1 parent ed46e39 commit 81f345a
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,28 @@ array:
- val3
```

If you want not to merge arrays, use `$include` in a nested array.

- main.yml
```yaml
array:
- - $include: array.yml
- val3
```

- array.yml
```yaml
- val1
- val2
```

- results in:
```yaml
array:
- - val1
- val2
- val3
```

### Multiple $include at same place

Expand Down

0 comments on commit 81f345a

Please sign in to comment.