Skip to content

Commit 7f22e2d

Browse files
committed
Update output format for environments and charts in CI/CD summary to YAML
1 parent ad98e7f commit 7f22e2d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/infrastructure-ci-cd.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ jobs:
8787
environments_json=$(printf '%s\n' "${environments[@]}" | jq -R . | jq -s -c .)
8888
8989
echo "environments=${environments_json}" >> $GITHUB_OUTPUT
90-
echo -e "#Environments to process: \n\`\`\`json\n${environments_json}\n\`\`\`" >> $GITHUB_STEP_SUMMARY
90+
echo -e "#Environments to process: \n\`\`\`yaml\n\n$(echo $environments_json | yq -y)\n\`\`\`" >> $GITHUB_STEP_SUMMARY
9191
9292
- name: Set matrix for changed charts
9393
id: set-chart-matrix
@@ -146,7 +146,7 @@ jobs:
146146
charts_json=$(printf '%s\n' "${charts[@]}" | jq -s -c '.')
147147
148148
echo "charts=${charts_json}" >> $GITHUB_OUTPUT
149-
echo -e "#Charts to process: \n\`\`\`json\n${charts_json}\n\`\`\`" >> $GITHUB_STEP_SUMMARY
149+
echo -e "#Charts to process: \n\`\`\`yaml\n\n$(echo $charts_json | yq -y)\n\`\`\`" >> $GITHUB_STEP_SUMMARY
150150
151151
lint-and-test:
152152
needs: setup

0 commit comments

Comments
 (0)