From 50a898b1fe3b51bb3c11a986b8d335db14bd9559 Mon Sep 17 00:00:00 2001 From: thePanz Date: Wed, 13 Mar 2024 17:13:02 +0100 Subject: [PATCH] Update: GitHub actions to run php-cs-fixer only on relevant changed files --- .github/workflows/lint.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index a2eed5a38..d65945a72 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,9 +1,21 @@ name: "Code Linting" on: push: + paths: + - .php-cs-fixer.dist.php + - autoload.php + - lib/** + - data/** + - tests/** branches: - master pull_request: + paths: + - .php-cs-fixer.dist.php + - autoload.php + - lib/** + - data/** + - tests/** jobs: php-cs-fixer: