From 03ae23686425956b3af0fbb07cd02746ea15c6f7 Mon Sep 17 00:00:00 2001 From: Sam Maosa Date: Thu, 17 Apr 2025 09:35:05 +0300 Subject: [PATCH] Changed events which trigger phpstan and code styling actions --- .github/workflows/fix-php-code-style-issues.yml | 5 +++++ .github/workflows/phpstan.yml | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/.github/workflows/fix-php-code-style-issues.yml b/.github/workflows/fix-php-code-style-issues.yml index 929e407..58537e4 100644 --- a/.github/workflows/fix-php-code-style-issues.yml +++ b/.github/workflows/fix-php-code-style-issues.yml @@ -2,6 +2,11 @@ name: "Fix PHP Code Styling" on: push: + branches: [ main ] + paths: + - '**.php' + pull_request: + branches: [ main ] paths: - '**.php' diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index b0cde6a..45f5c69 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -2,6 +2,12 @@ name: PHPStan on: push: + branches: [ main ] + paths: + - '**.php' + - 'phpstan.neon.dist' + pull_request: + branches: [ main ] paths: - '**.php' - 'phpstan.neon.dist'