Skip to content

Commit

Permalink
Merge pull request android#1010 from android/dt/apply-spotless-in-ci
Browse files Browse the repository at this point in the history
Apply spotless automatically during build and commit to PR
  • Loading branch information
dturner committed Nov 2, 2023
2 parents 59994b9 + 58a1694 commit dca54fd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/Build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,11 @@ jobs:
- name: Setup Gradle
uses: gradle/gradle-build-action@v2

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

- name: Build all build type and flavor permutations
run: ./gradlew assemble
Expand Down

0 comments on commit dca54fd

Please sign in to comment.