Splitting JSON for possibly easier processing for MD conversion.
This commit is contained in:
@@ -89,13 +89,14 @@ jobs:
|
|||||||
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
|
cat qg_fixed_json.json
|
||||||
echo "qg_fixed_json=$(cat qg_fixed_json.json)" >> $GITHUB_ENV
|
projstatus=$(jq -r '.projectStatus.status' fixed.json)
|
||||||
|
caycStatus=$(jq -r '.projectStatus.caycStatus' fixed.json)
|
||||||
|
conditions=$(jq -c '.projectStatus.conditions' fixed.json)
|
||||||
|
|
||||||
- name: Convert JSON report to markdown
|
echo "status=${status}" >> $GITHUB_OUTPUT
|
||||||
id: convert-json-to-md
|
echo "caycStatus=${caycStatus}" >> $GITHUB_OUTPUT
|
||||||
uses: parkerbxyz/json-to-markdown-table@v1.1.2
|
echo "conditions=${conditionCount}" >> $GITHUB_OUTPUT
|
||||||
with:
|
echo "qg_fixed_json=$(cat qg_fixed_json.json)" >> $GITHUB_ENV
|
||||||
json: ${{ env.qg_fixed_json }}
|
|
||||||
|
|
||||||
- name: Verify markdown output
|
- name: Verify markdown output
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user