diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 1356f21fbd..a1e67dd91f 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -41,3 +41,19 @@ jobs: path: | coverage !coverage/lcov-report + + skip_sonar: + name: Skip SonarCloud in merge queue + if: github.event_name == 'merge_group' + runs-on: ubuntu-latest + needs: jest + steps: + - name: Skip SonarCloud + uses: Sibz/github-status-action@071b5370da85afbb16637d6eed8524a06bc2053e # v1 + with: + authToken: ${{ secrets.GITHUB_TOKEN }} + state: success + description: SonarCloud skipped + context: SonarCloud Code Analysis + sha: ${{ github.sha }} + target_url: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}