Var fix, L89-90...
This commit is contained in:
@@ -47,7 +47,7 @@ jobs:
|
|||||||
"body": "This is an automated PR created by Gitea Actions.",
|
"body": "This is an automated PR created by Gitea Actions.",
|
||||||
"base": "main",
|
"base": "main",
|
||||||
"head": "${{ github.ref_name }}"
|
"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"
|
echo "pr_created=$(jq -c . pr_created.json)" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
# Job 2: Run SonarQube Analysis
|
# Job 2: Run SonarQube Analysis
|
||||||
@@ -86,7 +86,7 @@ jobs:
|
|||||||
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.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
|
sed -E 's/([^,{:]*):/\1":/g; s/: ([^,}\]]*)/: "\1"/g' input.txt | sed 's/,\s*}/}/g; s/,\s*\]/]/g' > fixed.json
|
||||||
jq '.' fixed.json
|
jq '.' fixed.json
|
||||||
cat fixed.json
|
cat fixed.json
|
||||||
|
|||||||
Reference in New Issue
Block a user