-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (30 loc) · 1019 Bytes
/
it-separator.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: IT Override Nested Separator
on:
workflow_call:
workflow_dispatch:
permissions:
contents: read
jobs:
it-action-nested-sep:
name: Nested Separator Override
runs-on: ubuntu-latest
steps:
- name: Checkout sources for fixtures
uses: actions/checkout@v3
- name: When we require to load from structured formats with a specific nesting separator
uses: zlatko-ms/envarfiles@main
with:
separator: '-'
paths: |
./test/fixtures/integ/json/override.json
./test/fixtures/integ/yaml/override.yaml
- name: Then the variable from JSON is defined with the expected separator
uses: nick-fields/assert-action@v1
with:
expected: 3
actual: ${{ env.version-product-minor }}
- name: And the variable from YAML is defined with the expected separator
uses: nick-fields/assert-action@v1
with:
expected: 4
actual: ${{ env.version-product-patch }}