From 5e745bc5ef7668286738ef60818acb0b15b6ddf1 Mon Sep 17 00:00:00 2001 From: Ryan Blue Date: Fri, 28 Jun 2024 09:29:21 -0400 Subject: [PATCH] [ci] Add spotless diff to summary and artifacts (#6779) --- .github/workflows/lint-format.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/lint-format.yml b/.github/workflows/lint-format.yml index 723f697205..98ba8b07de 100644 --- a/.github/workflows/lint-format.yml +++ b/.github/workflows/lint-format.yml @@ -98,6 +98,19 @@ jobs: - name: Generate diff run: git diff HEAD > javaformat-fixes.patch if: ${{ failure() }} + - uses: actions/upload-artifact@v4 + with: + name: javaformat fixes + path: javaformat-fixes.patch + if: ${{ failure() }} + - name: Write to job summary + run: | + echo '```diff' >> $GITHUB_STEP_SUMMARY + cat javaformat-fixes.patch >> $GITHUB_STEP_SUMMARY + echo '' >> $GITHUB_STEP_SUMMARY + echo '```' >> $GITHUB_STEP_SUMMARY + if: ${{ failure() }} + documentation: name: "Documentation" runs-on: ubuntu-22.04