From 8365dc663da3ac4ef49c21a571564244d3e4681a Mon Sep 17 00:00:00 2001 From: "Trez.One" Date: Thu, 19 Dec 2024 06:02:35 -0500 Subject: [PATCH] Splitting JSON for possibly easier processing for MD conversion. --- .gitea/workflows/branch-sonarscan-pr-merge.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/branch-sonarscan-pr-merge.yml b/.gitea/workflows/branch-sonarscan-pr-merge.yml index ca19fc2d..8a1affcd 100644 --- a/.gitea/workflows/branch-sonarscan-pr-merge.yml +++ b/.gitea/workflows/branch-sonarscan-pr-merge.yml @@ -89,13 +89,14 @@ jobs: 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 + 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 - id: convert-json-to-md - uses: parkerbxyz/json-to-markdown-table@v1.1.2 - with: - json: ${{ env.qg_fixed_json }} + echo "status=${status}" >> $GITHUB_OUTPUT + echo "caycStatus=${caycStatus}" >> $GITHUB_OUTPUT + echo "conditions=${conditionCount}" >> $GITHUB_OUTPUT + echo "qg_fixed_json=$(cat qg_fixed_json.json)" >> $GITHUB_ENV - name: Verify markdown output run: |