Still trying to retrieve report results in Markdown...
This commit is contained in:
@@ -85,16 +85,16 @@ jobs:
|
|||||||
id: json-cleanup
|
id: json-cleanup
|
||||||
run: |
|
run: |
|
||||||
echo "Cleaning up quality gate response..."
|
echo "Cleaning up quality gate response..."
|
||||||
echo '${{ steps.quality-gate-check.outputs.quality-gate-result }}' > input.txt
|
echo '${{ steps.quality-gate-check.outputs.quality-gate-result }}' > qg_input.txt
|
||||||
sed -E 's/([a-zA-Z0-9_]+):/\\"\1\\":/g; s/:([^",{}\[\]]+)/:"\1"/g' input.txt > raw.json
|
sed -E 's/([a-zA-Z0-9_]+):/\\"\1\\":/g; s/:([^",{}\[\]]+)/:"\1"/g' qg_input.txt > qg_raw.json
|
||||||
fixed_json=$(jq -c '.' raw.json)
|
qg_fixed_json=$(jq -c '.' qg_raw.json)
|
||||||
echo "fixed_json=$(cat fixed_json)" >> $GITHUB_OUTPUT
|
echo "fixed-json=$(echo $qg_fixed_json)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Convert JSON report to markdown
|
- name: Convert JSON report to markdown
|
||||||
id: convert-json-to-md
|
id: convert-json-to-md
|
||||||
uses: parkerbxyz/json-to-markdown-table@v1.1.2
|
uses: parkerbxyz/json-to-markdown-table@v1.1.2
|
||||||
with:
|
with:
|
||||||
json: ${{ steps.json-cleanup.outputs.fixed_json }}
|
json: ${{ steps.json-cleanup.outputs.fixed-json }}
|
||||||
|
|
||||||
- name: Verify markdown output
|
- name: Verify markdown output
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user