From 70aee004c5f64e6bfd00c928327eedc62b334ba0 Mon Sep 17 00:00:00 2001 From: Lavanya L Nair Date: Wed, 29 Oct 2025 14:57:20 +0530 Subject: [PATCH] fix: added condition to exclude PRs created by github-actions[bot] --- .github/workflows/contributors.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/contributors.yml b/.github/workflows/contributors.yml index fd740c29..cb963abf 100644 --- a/.github/workflows/contributors.yml +++ b/.github/workflows/contributors.yml @@ -1,11 +1,11 @@ name: Contributors on: push: - branches: [ main ] + branches: [main] pull_request: - types: [ closed ] + types: [closed] schedule: - - cron: '0 2 * * 1' + - cron: "0 2 * * 1" workflow_dispatch: jobs: @@ -13,7 +13,9 @@ jobs: runs-on: ubuntu-latest if: | github.event_name == 'push' || - (github.event_name == 'pull_request' && github.event.pull_request.merged == true) || + (github.event_name == 'pull_request' && + github.event.pull_request.merged == true && + github.event.pull_request.user.login != 'github-actions[bot]') || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' permissions: