Skip to content

Commit 3ccacba

Browse files
authored
Merge pull request #1012 from android/revert-1010-dt/apply-spotless-in-ci
Revert "Apply spotless automatically during build and commit to PR"
2 parents dca54fd + e695df3 commit 3ccacba

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.github/workflows/Build.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,8 @@ jobs:
3434
- name: Setup Gradle
3535
uses: gradle/gradle-build-action@v2
3636

37-
- name: Apply formatting if failed
38-
run: ./gradlew spotlessApply --init-script gradle/init.gradle.kts --no-configuration-cache
39-
- uses: stefanzweifel/git-auto-commit-action@v5
40-
with:
41-
commit_message: Apply Spotless
37+
- name: Check spotless
38+
run: ./gradlew spotlessCheck --init-script gradle/init.gradle.kts --no-configuration-cache
4239

4340
- name: Build all build type and flavor permutations
4441
run: ./gradlew assemble

0 commit comments

Comments
 (0)