From 3fe0325eaba081e71474e6a64cc62f086d712b77 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Mon, 22 Jan 2024 13:07:23 +0000 Subject: [PATCH] Skip Sonar in Merge Queue Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- .github/workflows/tests.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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 }}