File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed
Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 88 - feature/v2
99 pull_request :
1010 types : [opened, synchronize, reopened]
11+
12+ env :
13+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
14+
1115jobs :
16+ checksecret :
17+ name : check if SONAR_TOKEN is set in github secrets
18+ runs-on : ubuntu-latest
19+ outputs :
20+ is_SONAR_TOKEN_set : ${{ steps.checksecret_job.outputs.is_SONAR_TOKEN_set }}
21+ steps :
22+ - name : Check whether unity activation requests should be done
23+ id : checksecret_job
24+ run : |
25+ echo "is_SONAR_TOKEN_set=${{ env.SONAR_TOKEN != '' }}" >> $GITHUB_OUTPUT
1226 build :
27+ needs : [checksecret]
28+ if : needs.checksecret.outputs.is_SONAR_TOKEN_set == 'true'
1329 name : Build
1430 runs-on : ubuntu-latest
1531 steps :
3753 - name : Build and analyze
3854 env :
3955 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
40- SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
4156 run : ./gradlew build sonarqube --info
You can’t perform that action at this time.
0 commit comments