Skip to content

Commit 26230c3

Browse files
committed
Build/Test Tools: Remove Dependabot-specific workflow conditions.
Since the bot has been disabled, these conditions are no longer necessary. Follow up to [61049]. See #64140. git-svn-id: https://develop.svn.wordpress.org/trunk@61050 602fd350-edb4-49c9-b593-d223f7449a82
1 parent b60c06c commit 26230c3

13 files changed

+19
-21
lines changed

.github/workflows/check-built-files.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ permissions: {}
4545
jobs:
4646
check-for-built-file-changes:
4747
name: Check built files
48-
# This prevents an unnecessary second run after changes are committed back because Dependabot always rebases and force pushes.
49-
if: ${{ github.repository == 'wordpress/wordpress-develop' && ( github.actor != 'dependabot[bot]' || github.event.commits < 2 ) }}
48+
if: ${{ github.repository == 'wordpress/wordpress-develop' }}
5049
uses: ./.github/workflows/reusable-check-built-files.yml
5150
permissions:
5251
contents: read

.github/workflows/coding-standards.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ jobs:
5454
uses: ./.github/workflows/reusable-coding-standards-php.yml
5555
permissions:
5656
contents: read
57-
if: ${{ github.repository == 'WordPress/wordpress-develop' || ( github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' ) }}
57+
if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
5858

5959
# Runs the JavaScript coding standards checks.
6060
jshint:
6161
name: Coding standards
6262
uses: ./.github/workflows/reusable-coding-standards-javascript.yml
6363
permissions:
6464
contents: read
65-
if: ${{ github.repository == 'WordPress/wordpress-develop' || ( github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' ) }}
65+
if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
6666

6767
slack-notifications:
6868
name: Slack Notifications

.github/workflows/commit-built-file-changes.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ jobs:
160160
if: ${{ steps.artifact-check.outputs.exists == 'true' }}
161161
working-directory: 'pr-repo'
162162
run: |
163-
git commit -m "Automation: Updating built files with changes. [dependabot skip]"
163+
git commit -m "Automation: Updating built files with changes."
164164
165165
- name: Push changes
166166
if: ${{ steps.artifact-check.outputs.exists == 'true' }}

.github/workflows/end-to-end-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
uses: ./.github/workflows/reusable-end-to-end-tests.yml
6161
permissions:
6262
contents: read
63-
if: ${{ github.repository == 'WordPress/wordpress-develop' || ( github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' ) }}
63+
if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
6464
strategy:
6565
fail-fast: false
6666
matrix:

.github/workflows/javascript-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
uses: ./.github/workflows/reusable-javascript-tests.yml
5656
permissions:
5757
contents: read
58-
if: ${{ github.repository == 'WordPress/wordpress-develop' || ( github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' ) }}
58+
if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
5959

6060
slack-notifications:
6161
name: Slack Notifications

.github/workflows/performance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
determine-matrix:
5454
name: Determine Matrix
5555
runs-on: ubuntu-24.04
56-
if: ${{ ( github.repository == 'WordPress/wordpress-develop' || ( github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' ) ) && ! contains( github.event.before, '00000000' ) }}
56+
if: ${{ ( github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' ) && ! contains( github.event.before, '00000000' ) }}
5757
permissions:
5858
actions: read
5959
env:

.github/workflows/php-compatibility.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
uses: ./.github/workflows/reusable-php-compatibility.yml
4848
permissions:
4949
contents: read
50-
if: ${{ github.repository == 'WordPress/wordpress-develop' || ( github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' ) }}
50+
if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
5151

5252
slack-notifications:
5353
name: Slack Notifications

.github/workflows/phpunit-tests.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
permissions:
6868
contents: read
6969
secrets: inherit
70-
if: ${{ startsWith( github.repository, 'WordPress/' ) && ( github.repository == 'WordPress/wordpress-develop' || ( github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' ) ) }}
70+
if: ${{ startsWith( github.repository, 'WordPress/' ) && ( github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' ) }}
7171
strategy:
7272
fail-fast: false
7373
matrix:
@@ -203,7 +203,7 @@ jobs:
203203
permissions:
204204
contents: read
205205
secrets: inherit
206-
if: ${{ startsWith( github.repository, 'WordPress/' ) && ( github.repository == 'WordPress/wordpress-develop' || ( github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' ) ) }}
206+
if: ${{ startsWith( github.repository, 'WordPress/' ) && ( github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' ) }}
207207
strategy:
208208
fail-fast: false
209209
matrix:
@@ -450,7 +450,7 @@ jobs:
450450
permissions:
451451
contents: read
452452
secrets: inherit
453-
if: ${{ startsWith( github.repository, 'WordPress/' ) && ( github.repository == 'WordPress/wordpress-develop' || ( github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' ) ) }}
453+
if: ${{ startsWith( github.repository, 'WordPress/' ) && ( github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' ) }}
454454
strategy:
455455
fail-fast: false
456456
matrix:
@@ -517,7 +517,7 @@ jobs:
517517
permissions:
518518
contents: read
519519
secrets: inherit
520-
if: ${{ startsWith( github.repository, 'WordPress/' ) && ( github.repository == 'WordPress/wordpress-develop' || ( github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' ) ) }}
520+
if: ${{ startsWith( github.repository, 'WordPress/' ) && ( github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' ) }}
521521
strategy:
522522
fail-fast: false
523523
matrix:
@@ -546,7 +546,7 @@ jobs:
546546
permissions:
547547
contents: read
548548
secrets: inherit
549-
if: ${{ ! startsWith( github.repository, 'WordPress/' ) && github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' }}
549+
if: ${{ ! startsWith( github.repository, 'WordPress/' ) && github.event_name == 'pull_request' }}
550550
strategy:
551551
fail-fast: false
552552
matrix:

.github/workflows/pull-request-comments.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ jobs:
125125

126126
- name: Leave a comment about testing with Playground
127127
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
128-
if: ${{ github.actor != 'dependabot[bot]' }}
129128
with:
130129
script: |
131130
const fs = require( 'fs' );
@@ -174,7 +173,7 @@ jobs:
174173
permissions:
175174
issues: write
176175
pull-requests: write
177-
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]' }}
176+
if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name == 'pull_request_target' && ! github.event.pull_request.draft && github.event.pull_request.state == 'open' }}
178177
steps:
179178
- name: Check for Trac ticket and manage comment
180179
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1

.github/workflows/test-and-zip-default-themes.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
permissions:
7070
contents: read
7171
timeout-minutes: 10
72-
if: ${{ github.repository == 'WordPress/wordpress-develop' || ( github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' ) }}
72+
if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
7373
strategy:
7474
fail-fast: false
7575
matrix:
@@ -119,7 +119,7 @@ jobs:
119119
permissions:
120120
contents: read
121121
timeout-minutes: 10
122-
if: ${{ github.repository == 'WordPress/wordpress-develop' || ( github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' ) }}
122+
if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
123123
strategy:
124124
fail-fast: false
125125
matrix:

0 commit comments

Comments
 (0)