From 6d05e39c124b59b49f9ad10c3ff4d9b1353c1b3c Mon Sep 17 00:00:00 2001 From: "John Paul E. Balandan, CPA" Date: Sun, 19 Nov 2023 18:24:46 +0800 Subject: [PATCH] Add branches filter on workflows --- .github/workflows/test-coding-standards.yml | 4 ++++ .github/workflows/test-phpstan.yml | 4 ++++ .github/workflows/test-phpunit.yml | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/.github/workflows/test-coding-standards.yml b/.github/workflows/test-coding-standards.yml index c12934d..accd88c 100644 --- a/.github/workflows/test-coding-standards.yml +++ b/.github/workflows/test-coding-standards.yml @@ -4,10 +4,14 @@ on: schedule: - cron: '0 0 * * *' pull_request: + branches: + - '*.x' paths: - '.github/workflows/test-coding-standards.yml' - '**.php' push: + branches: + - '*.x' paths: - '.github/workflows/test-coding-standards.yml' - '**.php' diff --git a/.github/workflows/test-phpstan.yml b/.github/workflows/test-phpstan.yml index b92757a..fe1df00 100644 --- a/.github/workflows/test-phpstan.yml +++ b/.github/workflows/test-phpstan.yml @@ -4,12 +4,16 @@ on: schedule: - cron: '0 0 * * *' pull_request: + branches: + - '*.x' paths: - '.github/workflows/test-phpstan.yml' - '**.php' - 'extension.neon' - 'phpstan.neon.dist' push: + branches: + - '*.x' paths: - '.github/workflows/test-phpstan.yml' - '**.php' diff --git a/.github/workflows/test-phpunit.yml b/.github/workflows/test-phpunit.yml index 8abdd02..6ee6e5c 100644 --- a/.github/workflows/test-phpunit.yml +++ b/.github/workflows/test-phpunit.yml @@ -4,11 +4,15 @@ on: schedule: - cron: '0 0 * * *' pull_request: + branches: + - '*.x' paths: - '.github/workflows/test-phpunit.yml' - '**.php' - 'phpunit.dist.xml' push: + branches: + - '*.x' paths: - '.github/workflows/test-phpunit.yml' - '**.php'