mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-07 23:18:21 +00:00
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:
@@ -279,3 +279,6 @@
|
|||||||
- name: "Z-Flaky-Test-Disabled"
|
- name: "Z-Flaky-Test-Disabled"
|
||||||
description: "The flaking test has been disabled"
|
description: "The flaking test has been disabled"
|
||||||
color: "ededed"
|
color: "ededed"
|
||||||
|
- name: "Z-Skip-Sonar"
|
||||||
|
description: "Skip SonarQube analysis for this PR"
|
||||||
|
color: "ededed"
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ jobs:
|
|||||||
run: exit 1
|
run: exit 1
|
||||||
|
|
||||||
- name: Skip SonarCloud in merge queue
|
- 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
|
uses: guibranco/github-status-action-v2@5530c593759f489bba08272e96986ffc571c1ea1
|
||||||
with:
|
with:
|
||||||
authToken: ${{ secrets.GITHUB_TOKEN }}
|
authToken: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
Reference in New Issue
Block a user