Skip to content

Commit c58a842

Browse files
fix: fix outputs
1 parent fb6b786 commit c58a842

File tree

1 file changed

+5
-16
lines changed

1 file changed

+5
-16
lines changed

.github/workflows/reusable-lightweight.yml

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ jobs:
103103
SA_GPG_PASSPHRASE: ${{ secrets.SA_GPG_PASSPHRASE }}
104104
outputs:
105105
# outputs from `dynamic-uses` action are passed as a JSON string
106-
outputs: ${{ steps.meta.outputs.outputs }}
106+
sc4s: ${{ fromJSON(steps.meta.outputs.outputs).sc4s }}
107107
needs: get-called-sha
108108
steps:
109109
- uses: jenseng/dynamic-uses@v1
@@ -112,17 +112,6 @@ jobs:
112112
uses: splunk/addonfactory-workflow-addon-release/.github/actions/meta@${{ needs.get-called-sha.outputs.sha }}
113113
# inputs need to provided as a valid JSON string
114114
with: ${{ toJSON(env) }}
115-
116-
117-
debug:
118-
name: Debug
119-
runs-on: ubuntu-latest
120-
needs: meta
121-
steps:
122-
- name: Debug outputs
123-
run: |
124-
echo "${{ fromJSON(needs.meta.outputs.outputs) }}"
125-
echo "${{ fromJSON(needs.meta.outputs.outputs).sc4s }}"
126115

127116
fossa-scan:
128117
name: FOSSA scan
@@ -201,10 +190,10 @@ jobs:
201190
runs-on: ubuntu-latest
202191
# outputs from `dynamic-uses` action are passed as a JSON string
203192
outputs:
204-
unit: ${{ fromJSON(steps.test-inventory.outputs).unit }}
205-
ucc_modinput_functional: ${{ fromJSON(steps.test-inventory.outputs).ucc_modinput_functional }}
206-
modinput_functional: ${{ fromJSON(steps.test-inventory.outputs).modinput_functional }}
207-
requirement_test: ${{ fromJSON(steps.test-inventory.outputs).requirement_test }}
193+
unit: ${{ fromJSON(steps.test-inventory.outputs.outputs).unit }}
194+
ucc_modinput_functional: ${{ fromJSON(steps.test-inventory.outputs.outputs).ucc_modinput_functional }}
195+
modinput_functional: ${{ fromJSON(steps.test-inventory.outputs.outputs).modinput_functional }}
196+
requirement_test: ${{ fromJSON(steps.test-inventory.outputs.outputs).requirement_test }}
208197
needs: get-called-sha
209198
steps:
210199
- uses: jenseng/dynamic-uses@v1

0 commit comments

Comments
 (0)