mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[build] Generate spotless patch on failure (#3523)
This commit is contained in:
11
.github/workflows/lint-format.yml
vendored
11
.github/workflows/lint-format.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user