|
73 | 73 | steps:
|
74 | 74 | - name: Simple
|
75 | 75 | id: test # used to access output in other steps
|
76 |
| - uses: nickofthyme/object-remap@v1 |
| 76 | + uses: nickofthyme/object-remap@v3 |
77 | 77 | with:
|
78 | 78 | key_number: 1
|
79 | 79 | key_string: string1
|
@@ -107,7 +107,7 @@ jobs:
|
107 | 107 | steps:
|
108 | 108 | - name: Simple - nested
|
109 | 109 | id: test # used to access output in other steps
|
110 |
| - uses: nickofthyme/object-remap@v1 |
| 110 | + uses: nickofthyme/object-remap@v3 |
111 | 111 | with:
|
112 | 112 | top.deep.very_deep: 1
|
113 | 113 | ```
|
@@ -135,7 +135,7 @@ jobs:
|
135 | 135 | steps:
|
136 | 136 | - name: Simple - depth
|
137 | 137 | id: test # used to access output in other steps
|
138 |
| - uses: nickofthyme/object-remap@v1 |
| 138 | + uses: nickofthyme/object-remap@v3 |
139 | 139 | with:
|
140 | 140 | __depth: 2
|
141 | 141 | one: '{ "two": 2 }'
|
@@ -171,7 +171,7 @@ jobs:
|
171 | 171 | steps:
|
172 | 172 | - name: Simple - casing
|
173 | 173 | id: test # used to access output in other steps
|
174 |
| - uses: nickofthyme/object-remap@v1 |
| 174 | + uses: nickofthyme/object-remap@v3 |
175 | 175 | with:
|
176 | 176 | __case: kebab
|
177 | 177 | my_key.my_nested_key: 1
|
@@ -200,7 +200,7 @@ jobs:
|
200 | 200 | steps:
|
201 | 201 | - name: Simple - deep casing
|
202 | 202 | id: test # used to access output in other steps
|
203 |
| - uses: nickofthyme/object-remap@v1 |
| 203 | + uses: nickofthyme/object-remap@v3 |
204 | 204 | with:
|
205 | 205 | __case: upper
|
206 | 206 | __deep_casing: true
|
@@ -269,7 +269,7 @@ jobs:
|
269 | 269 | run: echo "json={\"one\":1,\"two\":{\"one\":1},\"three\":{\"two\":{\"one\":1}},\"numbers\":[1,2,3],\"array\":[{\"test\":\"key1\",\"deeper\":{\"deep\":1}},{\"test\":\"key2\"}]}" >> "$GITHUB_OUTPUT"
|
270 | 270 | - name: Complex values
|
271 | 271 | id: test # used to access output in other steps
|
272 |
| - uses: nickofthyme/object-remap@v1 |
| 272 | + uses: nickofthyme/object-remap@v3 |
273 | 273 | with:
|
274 | 274 | test: ${{ steps.mock.outputs.json }}
|
275 | 275 |
|
@@ -319,7 +319,7 @@ jobs:
|
319 | 319 | run: echo "json={\"one\":1,\"two\":{\"one\":1},\"three\":{\"two\":{\"one\":1}},\"numbers\":[1,2,3],\"array\":[{\"test\":\"key1\",\"deeper\":{\"deep\":1}},{\"test\":\"key2\"}]}" >> "$GITHUB_OUTPUT"
|
320 | 320 | - name: Complex values
|
321 | 321 | id: test # used to access output in other steps
|
322 |
| - uses: nickofthyme/object-remap@v1 |
| 322 | + uses: nickofthyme/object-remap@v3 |
323 | 323 | with:
|
324 | 324 | test.value: ${{ fromJSON(steps.mock.outputs.json).two.one }} # value is just 1
|
325 | 325 | ```
|
@@ -350,7 +350,7 @@ jobs:
|
350 | 350 | run: echo "json={\"one\":1,\"two\":{\"one\":1},\"three\":{\"two\":{\"one\":1}},\"numbers\":[1,2,3],\"array\":[{\"test\":\"key1\",\"deeper\":{\"deep\":1}},{\"test\":\"key2\"}]}" >> "$GITHUB_OUTPUT"
|
351 | 351 | - name: Complex values
|
352 | 352 | id: test # used to access output in other steps
|
353 |
| - uses: nickofthyme/object-remap@v1 |
| 353 | + uses: nickofthyme/object-remap@v3 |
354 | 354 | with:
|
355 | 355 | test.*.key: ${{ fromJSON(steps.mock.outputs.json).array.*.test }} # value is just ['key1', 'key2`]
|
356 | 356 | ```
|
@@ -403,7 +403,7 @@ jobs:
|
403 | 403 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
404 | 404 | - name: Create matrix
|
405 | 405 | id: save
|
406 |
| - uses: nickofthyme/object-remap@v1 |
| 406 | + uses: nickofthyme/object-remap@v3 |
407 | 407 | with:
|
408 | 408 | include.*.number: ${{ toJSON(fromJSON(steps.fetch.outputs.data).*.number) }}
|
409 | 409 | include.*.sha: ${{ toJSON(fromJSON(steps.fetch.outputs.data).*.head.sha) }}
|
@@ -449,7 +449,7 @@ jobs:
|
449 | 449 | GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
450 | 450 | - name: Store matrix
|
451 | 451 | id: save
|
452 |
| - uses: nickofthyme/object-remap@v1 |
| 452 | + uses: nickofthyme/object-remap@v3 |
453 | 453 | with:
|
454 | 454 | include.*.number: ${{ toJSON(fromJSON(steps.fetch.outputs.data).*.number) }}
|
455 | 455 | include.*.head_sha: ${{ toJSON(fromJSON(steps.fetch.outputs.data).*.head.sha) }}
|
|
0 commit comments