Add Z-Skip-Sonar check (#31409)

* Try fetch PR from the workflow run to check the label and skip sonar

* Use existing pattern to post success for the sonarqube check

* Trigger Build
This commit is contained in:
David Langley
2025-12-03 18:38:58 +00:00
committed by GitHub
parent 046fb335c0
commit 5a9656350e
2 changed files with 4 additions and 1 deletions

View File

@@ -103,7 +103,7 @@ jobs:
run: exit 1
- name: Skip SonarCloud in merge queue
if: github.event_name == 'merge_group' || inputs.disable_coverage == 'true'
if: github.event_name == 'merge_group' || inputs.disable_coverage == 'true' || contains(github.event.pull_request.labels.*.name, 'Z-Skip-Sonar')
uses: guibranco/github-status-action-v2@5530c593759f489bba08272e96986ffc571c1ea1
with:
authToken: ${{ secrets.GITHUB_TOKEN }}