From 2508fa80a16379c09c0aac5ac068ef950cf92930 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Chastanet?= Date: Mon, 4 Dec 2023 23:59:19 +0100 Subject: [PATCH] github workflow add git diff when pre-commit modifies files --- .github/workflows/lint-test.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/lint-test.yml b/.github/workflows/lint-test.yml index 46e17bd8..1106959e 100644 --- a/.github/workflows/lint-test.yml +++ b/.github/workflows/lint-test.yml @@ -90,6 +90,11 @@ jobs: - name: Run pre-commit if: matrix.runPrecommitTests run: pre-commit run -a --hook-stage manual + + - uses: getsentry/action-git-diff-suggestions@main + if: matrix.runPrecommitTests + with: + message: 'pre-commit made the following changes' - name: Archive results if: matrix.runPrecommitTests && always()