mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 12:58:25 +01:00
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
This commit is contained in:
parent
f9418c7c3d
commit
4a03ebeffe
4
.github/workflows/pull-request-comments.yml
vendored
4
.github/workflows/pull-request-comments.yml
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user