From 5cf85ea9617b2b93bbc8394ab4262b5911b58642 Mon Sep 17 00:00:00 2001 From: "marcin.cebo" Date: Mon, 22 Jun 2026 14:28:13 +0200 Subject: [PATCH] Fixed validation job not to fail when there is nothing to check --- .github/workflows/run-validations.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/run-validations.yml b/.github/workflows/run-validations.yml index 3f974bc3..0d3fc40d 100644 --- a/.github/workflows/run-validations.yml +++ b/.github/workflows/run-validations.yml @@ -55,7 +55,7 @@ jobs: - name: Run PHPStan run: vendor/bin/phpstan analyze --memory-limit 256M - name: Run phpcs on changed files - run: git diff --name-only --diff-filter=d origin/master HEAD | grep -E '\.php$' | xargs vendor/bin/phpcs --standard=PSR12 + run: git diff --name-only --diff-filter=d origin/master HEAD | { grep -E '\.php$' || true; } | xargs --no-run-if-empty vendor/bin/phpcs --standard=PSR12 - name: Cancel workflow runs for commit on error if: failure() uses: ./.github/.release/actions/actions/utils/fast-jobs-failure