[build] Generate spotless patch on failure (#3523)

This commit is contained in:
PJ Reiniger
2021-08-21 02:18:10 -04:00
committed by GitHub
parent b903173211
commit 57c8615af3

View File

@@ -79,6 +79,17 @@ jobs:
fetch-depth: 0
- name: Run spotless
run: ./gradlew spotlessCheck
- name: Apply Spotless
run: ./gradlew :spotlessApply
if: ${{ failure() }}
- name: Generate diff
run: git diff HEAD > spotless-fixes.patch
if: ${{ failure() }}
- uses: actions/upload-artifact@v2
with:
name: spotless fixes
path: spotless-fixes.patch
if: ${{ failure() }}
javaformat:
name: "Checkstyle and PMD"
runs-on: ubuntu-latest