From bb7965bb1abdd40d81832565fe47c445736af88d Mon Sep 17 00:00:00 2001 From: Harald Csaszar Date: Wed, 15 Oct 2025 22:34:44 +0200 Subject: [PATCH] [workflows][csharp] Adding diff output to formatting check. --- .github/workflows/format-check-csharp.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/format-check-csharp.yml b/.github/workflows/format-check-csharp.yml index 4073627b3..4ec1fcc01 100644 --- a/.github/workflows/format-check-csharp.yml +++ b/.github/workflows/format-check-csharp.yml @@ -20,5 +20,11 @@ jobs: - name: Check for changes run: | + git add . + git reset . git ls-files -m - if [[ `git ls-files -m` ]]; then echo "Detected C# formatting errors!" & exit 1; fi \ No newline at end of file + if [[ `git ls-files -m` ]]; then + git diff + git diff > format-diff.txt + echo "Detected C# formatting errors!" & exit 1; + fi \ No newline at end of file