Skip to content

Commit d102948

Browse files
committed
ci: disable sonar on dependabot branches
1 parent c6caafb commit d102948

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@ jobs:
2222
- name: Setup Gradle
2323
uses: gradle/actions/setup-gradle@v4
2424
- name: Cache SonarCloud packages
25+
if: ${{ !startsWith(github.ref_name, 'dependabot/') }}
2526
uses: actions/cache@v4
2627
with:
2728
path: ~/.sonar/cache
2829
key: ${{ runner.os }}-sonar
2930
restore-keys: ${{ runner.os }}-sonar
3031
- name: Run Gradle checks
3132
env:
32-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3333
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
34-
run: ./gradlew check sonar
34+
run: ./gradlew ${{ startsWith(github.ref_name, 'dependabot/') && 'check' || 'check sonar' }}
3535
- name: Upload test reports
3636
if: ${{ !cancelled() }}
3737
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)