From 7de19ba11f5b34586c96667d87afcbddb7df3d45 Mon Sep 17 00:00:00 2001 From: "Trez.One" Date: Wed, 18 Dec 2024 08:12:10 -0500 Subject: [PATCH] Var fix, L89-90... --- .gitea/workflows/branch-sonarscan-pr-merge.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/branch-sonarscan-pr-merge.yml b/.gitea/workflows/branch-sonarscan-pr-merge.yml index a21c3483..135c8c68 100644 --- a/.gitea/workflows/branch-sonarscan-pr-merge.yml +++ b/.gitea/workflows/branch-sonarscan-pr-merge.yml @@ -47,7 +47,7 @@ jobs: "body": "This is an automated PR created by Gitea Actions.", "base": "main", "head": "${{ github.ref_name }}" - }' | jq '{index: .number}' > pr_created.json + }' -s | jq '{index: .number}' > pr_created.json echo "pr_created=$(jq -c . pr_created.json)" >> "$GITHUB_OUTPUT" # Job 2: Run SonarQube Analysis @@ -86,7 +86,7 @@ jobs: run: | echo "Quality Gate Status: ${{ steps.quality-gate-check.outputs.project-status }}" echo "Quality Gate Result: " - echo "${{ steps.quality-gate-check.outputs.quality-gate-result }}" > quality-gate-result.txt + echo "${{ steps.quality-gate-check.outputs.quality-gate-result }}" > input.txt 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