From ed730bbe2d2925c4cdeb3e9adb79fc6a1fcce344 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20FIDRY?= Date: Sat, 4 Nov 2023 21:39:39 +0100 Subject: [PATCH] ci: Leverage the git diff option See https://github.com/humbug/php-scoper/pull/895. --- .github/workflows/requirement-checker.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/requirement-checker.yaml b/.github/workflows/requirement-checker.yaml index 6e528b322..ad1775843 100644 --- a/.github/workflows/requirement-checker.yaml +++ b/.github/workflows/requirement-checker.yaml @@ -335,7 +335,7 @@ jobs: - name: Check for changes run: | - if [ $(git status --porcelain | wc -l) -eq "0" ]; then + if git diff --exit-code; then echo "🟢 No change detected." echo "requirement_checker_changed=false" >> $GITHUB_ENV else