From 63d7c3ccbaffb445e2e6a1039d50fa0c86a09791 Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Wed, 18 Aug 2021 19:24:55 +0200 Subject: [PATCH] Fix format check worklow git status would show more files than we want to check. --- .github/workflows/format-check.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/format-check.yml b/.github/workflows/format-check.yml index 55a485b25..acf57f058 100644 --- a/.github/workflows/format-check.yml +++ b/.github/workflows/format-check.yml @@ -56,5 +56,5 @@ jobs: - name: Fail on format changes run: | - git status --porcelain - if [[ `git status --porcelain` ]]; then echo "detected format changes!" & exit 1; fi \ No newline at end of file + git ls-files -m + if [[ `git ls-files -m` ]]; then echo "Detected formatting errors!" & exit 1; fi \ No newline at end of file