Skip to content

Commit b907097

Browse files
authored
Merge pull request #52 from cloudblue/await-time-to-let-sonar-process
Avoid sonar to crash due still did not processed report
2 parents b5412d6 + 2441ee8 commit b907097

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@ jobs:
125125
env:
126126
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
127127
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
128+
- name: Wait sonar to process report
129+
uses: jakejarvis/wait-action@master
130+
with:
131+
time: '60s'
128132
- name: SonarQube Quality Gate check
129133
uses: sonarsource/sonarqube-quality-gate-action@master
130134
timeout-minutes: 5

.github/workflows/publish.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ jobs:
4040
env:
4141
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4242
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
43+
- name: Wait sonar to process report
44+
uses: jakejarvis/wait-action@master
45+
with:
46+
time: '60s'
4347
- name: SonarQube Quality Gate check
4448
uses: sonarsource/sonarqube-quality-gate-action@master
4549
timeout-minutes: 5

0 commit comments

Comments
 (0)