From 4a03ebeffe993d9e61b9339586b67435ce5c0ecf Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers Date: Wed, 20 Nov 2024 18:08:27 +0000 Subject: [PATCH] Build/Test Tools: Correctly check for Dependabot. This updates the conditions added in [59370] to skip unnecessary pull request comments when Dependabot is the opening contributor to check for the correct `github.actor` value. Follow up to [59380]. See #62221. git-svn-id: https://develop.svn.wordpress.org/trunk@59441 602fd350-edb4-49c9-b593-d223f7449a82 --- .github/workflows/pull-request-comments.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull-request-comments.yml b/.github/workflows/pull-request-comments.yml index 3338ff78b0605..ab7eba9ceffaa 100644 --- a/.github/workflows/pull-request-comments.yml +++ b/.github/workflows/pull-request-comments.yml @@ -123,7 +123,7 @@ jobs: - name: Leave a comment about testing with Playground uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 - if: ${{ github.actor != 'dependabot' }} + if: ${{ github.actor != 'dependabot[bot]' }} with: script: | const fs = require( 'fs' ); @@ -172,7 +172,7 @@ jobs: permissions: issues: write pull-requests: write - if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name == 'pull_request_target' && ! github.event.pull_request.draft && github.event.pull_request.state == 'open' && github.actor != 'dependabot' }} + if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name == 'pull_request_target' && ! github.event.pull_request.draft && github.event.pull_request.state == 'open' && github.actor != 'dependabot[bot]' }} steps: - name: Check for Trac ticket and manage comment uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1