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
|
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
|
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
|
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
|
echo "qg_fixed_json=$(cat qg_fixed_json.json)" >> $GITHUB_ENV
|
||||||
|
|
||||||
- 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: ${{ env.qg_fixed_json }}
|
json: ${{ env.QUALITY_GATE_RESULT }}
|
||||||
|
env:
|
||||||
|
QUALITY_GATE_RESULT: ${{ env.qg_fixed_json }}
|
||||||
|
|
||||||
- name: Verify markdown output
|
- name: Verify markdown output
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user