This is an automated email from the ASF dual-hosted git repository.

alien11689 pushed a commit to branch exlude-pmd-for-dependabot-and-forks
in repository https://gitbox.apache.org/repos/asf/aries.git

commit 1b45916a5ca49a50c6a9e28d1fb46fe67c4439d6
Author: Dominik Przybysz <[email protected]>
AuthorDate: Tue Apr 15 19:56:22 2025 +0200

    [MAINTENANCE] Exclude pmd workflow for dependabot and PRs from forks
---
 .github/workflows/pmd.yml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/.github/workflows/pmd.yml b/.github/workflows/pmd.yml
index 41706a058..ba84d2426 100644
--- a/.github/workflows/pmd.yml
+++ b/.github/workflows/pmd.yml
@@ -33,6 +33,7 @@ jobs:
         os: [ ubuntu-latest ]
     name: PMD
     runs-on: ubuntu-latest
+    if: github.actor != 'dependabot[bot]' && (github.ref == 'refs/heads/trunk' 
|| github.event_name == 'pull_request' && 
github.event.pull_request.head.repo.full_name == github.repository) 
     steps:
     - name: Git Checkout
       uses: actions/checkout@v4

Reply via email to