Testing out JSON-to-MD conversion.
This commit is contained in:
@@ -88,14 +88,15 @@ jobs:
|
||||
echo '${{ steps.quality-gate-check.outputs.quality-gate-result }}' > qg_input.txt
|
||||
sed -E 's/([a-zA-Z0-9_]+):/\\"\1\\":/g; s/:([^",{}\[\]]+)/:"\1"/g' qg_input.txt > qg_raw.json
|
||||
jq -c '.' qg_raw.json > qg_fixed_json.json
|
||||
cat qg_fixed_json.json
|
||||
echo "qg_fixed_json=$(cat qg_fixed_json.json)" >> $GITHUB_ENV
|
||||
|
||||
- name: Convert JSON report to markdown
|
||||
id: convert-json-to-md
|
||||
uses: parkerbxyz/json-to-markdown-table@v1.1.2
|
||||
with:
|
||||
json: ${{ env.qg_fixed_json }}
|
||||
json: ${{ env.QUALITY_GATE_RESULT }}
|
||||
env:
|
||||
QUALITY_GATE_RESULT: ${{ env.qg_fixed_json }}
|
||||
|
||||
- name: Verify markdown output
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user