Skip to content

Commit b9c5c4c

Browse files
authored
Update gradle-build.yml to check for root gradle changes (#315)
1 parent 64f7e14 commit b9c5c4c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/gradle-build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
runs-on: ubuntu-latest
3030
outputs:
3131
build-changes: ${{ steps.filter.outputs.build }}
32+
gradle-root-changes: ${{ steps.filter.output.gradle-root }}
3233
source-changes: ${{ steps.filter.outputs.java }}
3334
steps:
3435
- uses: actions/checkout@v6
@@ -43,6 +44,8 @@ jobs:
4344
- '**/*.gradle.kts'
4445
- '**/gradle-build.yml'
4546
- 'gradle.properties'
47+
gradle-root:
48+
- 'build.gradle.kts'
4649
java:
4750
- '**/*.java'
4851
@@ -104,7 +107,7 @@ jobs:
104107
code-quality:
105108
name: Code Quality with Sonar
106109
needs: [gradle-build, check-changes]
107-
if: ${{ needs.check-changes.outputs.source-changes == 'true' }}
110+
if: ${{ needs.check-changes.outputs.source-changes == 'true' || needs.check-changes.outputs.gradle-root-changes == 'true' }}
108111
runs-on: ubuntu-latest
109112
steps:
110113
- uses: actions/checkout@v6

0 commit comments

Comments
 (0)