Skip to content

Commit 5e745bc

Browse files
authored
[ci] Add spotless diff to summary and artifacts (wpilibsuite#6779)
1 parent 5ce72d4 commit 5e745bc

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/lint-format.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,19 @@ jobs:
9898
- name: Generate diff
9999
run: git diff HEAD > javaformat-fixes.patch
100100
if: ${{ failure() }}
101+
- uses: actions/upload-artifact@v4
102+
with:
103+
name: javaformat fixes
104+
path: javaformat-fixes.patch
105+
if: ${{ failure() }}
106+
- name: Write to job summary
107+
run: |
108+
echo '```diff' >> $GITHUB_STEP_SUMMARY
109+
cat javaformat-fixes.patch >> $GITHUB_STEP_SUMMARY
110+
echo '' >> $GITHUB_STEP_SUMMARY
111+
echo '```' >> $GITHUB_STEP_SUMMARY
112+
if: ${{ failure() }}
113+
101114
documentation:
102115
name: "Documentation"
103116
runs-on: ubuntu-22.04

0 commit comments

Comments
 (0)