Still trying to retrieve report results in Markdown...
This commit is contained in:
@@ -82,11 +82,15 @@ jobs:
|
|||||||
sonar-token: ${{ secrets.SONARQUBE_TOKEN }}
|
sonar-token: ${{ secrets.SONARQUBE_TOKEN }}
|
||||||
|
|
||||||
- name: Check Quality Gate Status
|
- name: Check Quality Gate Status
|
||||||
|
id: check-quality-gate-status
|
||||||
run: |
|
run: |
|
||||||
echo "Quality Gate Status: ${{ steps.quality-gate-check.outputs.project-status }}"
|
echo "Quality Gate Status: ${{ steps.quality-gate-check.outputs.project-status }}"
|
||||||
echo "Quality Gate Result: "
|
echo "Quality Gate Result: "
|
||||||
echo "${{ steps.quality-gate-check.outputs.quality-gate-result }}" > quality-gate-result.json
|
echo "${{ steps.quality-gate-check.outputs.quality-gate-result }}" > quality-gate-result.txt
|
||||||
cat quality-gate-result.json | jq
|
sed -E 's/([^,{:]*):/\1":/g; s/: ([^,}\]]*)/: "\1"/g' input.txt | sed 's/,\s*}/}/g; s/,\s*\]/]/g' > fixed.json
|
||||||
|
jq '.' fixed.json
|
||||||
|
cat fixed.json
|
||||||
|
echo "quality-gate-report=$(cat 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
|
||||||
|
|||||||
Reference in New Issue
Block a user