File tree 1 file changed +6
-8
lines changed
1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -179,22 +179,20 @@ jobs:
179
179
180
180
- name : Display Action Outputs
181
181
if : ${{ needs.build.outputs.mode == 'test' }}
182
- env : ${{ fromJSON(steps.maven-artifacts.outputs.update_json) }}
183
182
run : |
184
183
echo "Action Outputs:"
185
184
echo "- [has_updates]: ${{ steps.maven-artifacts.outputs.has_updates }}"
186
185
echo "- [number_of_updates]: ${{ steps.maven-artifacts.outputs.number_of_updates }}"
187
186
echo "- [update_json]: ${{ steps.maven-artifacts.outputs.update_json }}"
188
187
echo ""
189
188
echo "Deserialized Update JSON:"
190
- echo "- [parents]: $parents"
191
- echo "- [dependencies]: $dependencies"
192
- echo "- [plugins]: ${{ fromJSON(steps.maven-artifacts.outputs.update_json).plugins }}" # Alternative
189
+ echo "- [parents][0] : ${{ fromJSON(steps.maven-artifacts.outputs.update_json). parents[0] }} "
190
+ echo "- [dependencies][0] : ${{ fromJSON(steps.maven-artifacts.outputs.update_json). dependencies[0] }} "
191
+ echo "- [plugins][0] : ${{ fromJSON(steps.maven-artifacts.outputs.update_json).plugins[0] }}"
193
192
echo ""
194
-
195
- # One approach to processing an array type field using bash:
196
- array=($(echo "$plugins" | jq -r '.[]'))
197
- for element in "${array[@]}"; do
193
+
194
+ echo "One approach to processing an array type field using bash:"
195
+ for element in ${{ join(fromJSON(steps.maven-artifacts.outputs.update_json).plugins, ' ') }}; do
198
196
IFS=":" read -r groupId artifactId version <<< "$element"
199
197
echo "groupId: $groupId"
200
198
echo "artifactId: $artifactId"
You can’t perform that action at this time.
0 commit comments