Apply spotless automatically during build and commit back to PR

Change-Id: Id822a3179fe866ffe2bb63157e399003f1b3ae4d
pull/1010/head
Don Turner 1 year ago
parent c8c83d4be8
commit be062d6c9e

@ -34,8 +34,11 @@ jobs:
- name: Setup Gradle - name: Setup Gradle
uses: gradle/gradle-build-action@v2 uses: gradle/gradle-build-action@v2
- name: Check spotless - name: Apply formatting if failed
run: ./gradlew spotlessCheck --init-script gradle/init.gradle.kts --no-configuration-cache run: ./gradlew spotlessApply --init-script gradle/init.gradle.kts --no-configuration-cache
- uses: stefanweifel/git-auto-commit-action@v4
with:
commit_message: Apply Spotless
- name: Build all build type and flavor permutations - name: Build all build type and flavor permutations
run: ./gradlew assemble run: ./gradlew assemble

Loading…
Cancel
Save