diff --git a/.github/workflows/pmd.yml b/.github/workflows/pmd.yml index 37fd466a8..50b6c59d4 100644 --- a/.github/workflows/pmd.yml +++ b/.github/workflows/pmd.yml @@ -13,6 +13,14 @@ on: - "application/**" - ".github/workflows/pmd.yml" - ".github/pmdrule.yml" + pull_request: + # The branches below must be a subset of the branches above + branches: ["master"] + paths: + - "**.java" + - "application/**" + - ".github/workflows/pmd.yml" + - ".github/pmdrule.yml" permissions: contents: read