diff --git a/.github/workflows/pmd.yml b/.github/workflows/pmd.yml index 1f936ad..c676659 100644 --- a/.github/workflows/pmd.yml +++ b/.github/workflows/pmd.yml @@ -22,7 +22,12 @@ jobs: java-version: '17' - name: Run PMD + id: pmd uses: pmd/pmd-github-action@v2 with: sourcePath: "src/main/java" - rulesets: "pmd.xml" \ No newline at end of file + rulesets: "pmd.xml" + + - name: PMD failed + if: ${{ !success() || steps.pmd.outputs.violations > 0 }} + run: exit 1