Skip to content

Commit 4653b00

Browse files
authored
Fix outputs (#6)
* Fix outputs
1 parent 37cc38f commit 4653b00

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.github/workflows/test-positive.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ jobs:
2828
outputs: |-
2929
result: ${{ matrix.target }}
3030
31+
- uses: nick-fields/assert-action@v1
32+
with:
33+
expected: ${{ matrix.target }}
34+
actual: ${{ fromJson(steps.writer.outputs.result).result }}
35+
3136
test:
3237
runs-on: ubuntu-latest
3338
continue-on-error: true
@@ -51,6 +56,7 @@ jobs:
5156
expected: '2'
5257
actual: "${{ needs.test.outputs.result }}"
5358

59+
5460
teardown:
5561
runs-on: ubuntu-latest
5662
needs: [assert]

action.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ inputs:
1717
outputs:
1818
result:
1919
description: "Outputs result"
20-
value: "${{ steps.write.outputs.result }}"
20+
value: "${{ steps.proxy.outputs.result }}"
2121
runs:
2222
using: "composite"
2323
steps:
@@ -35,6 +35,14 @@ runs:
3535
actual: "${{ inputs.matrix-key }}"
3636
comparison: notEqual
3737

38+
- uses: cloudposse/[email protected]
39+
id: proxy
40+
with:
41+
query: .
42+
config: |-
43+
result:
44+
${{ inputs.outputs }}
45+
3846
- uses: cloudposse/[email protected]
3947
id: write
4048
with:

0 commit comments

Comments
 (0)