From 2441ee88d6d558da5cda7ea4bad5e9fed2162cff Mon Sep 17 00:00:00 2001 From: Marc Serrat Date: Thu, 2 Dec 2021 10:53:20 +0100 Subject: [PATCH] Avoid sonar to crash due still did not processed report --- .github/workflows/build.yml | 4 ++++ .github/workflows/publish.yml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d5a791b..e9c72e8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -125,6 +125,10 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + - name: Wait sonar to process report + uses: jakejarvis/wait-action@master + with: + time: '60s' - name: SonarQube Quality Gate check uses: sonarsource/sonarqube-quality-gate-action@master timeout-minutes: 5 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index db47d41..df5385b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -40,6 +40,10 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + - name: Wait sonar to process report + uses: jakejarvis/wait-action@master + with: + time: '60s' - name: SonarQube Quality Gate check uses: sonarsource/sonarqube-quality-gate-action@master timeout-minutes: 5