ci: use sonarsource/sonarcloud-github-c-cpp

This commit is contained in:
Nick Bolton
2024-09-24 11:41:58 +01:00
parent bb6df4990a
commit 44bd69fdc8
2 changed files with 5 additions and 16 deletions

View File

@ -37,11 +37,12 @@ jobs:
- name: Check PR comment for flags
id: check
env:
PR_BODY: ${{ github.event.pull_request.body }}
run: |
pr_body="${{ github.event.pull_request.body }}"
no_sonar="{no-sonar}"
if echo $pr_body | grep -q "$no_sonar"; then
if echo $PR_BODY | grep -q "$no_sonar"; then
echo "Flag $no_sonar found in PR body."
echo "no-sonar=true" >> $GITHUB_OUTPUT
else