Skip to content

Commit 00ca4b1

Browse files
authored
Merge pull request #6254 from ampproject/fix/dependabot-username
Fix dependabot username in GHA workflows
2 parents 8e60121 + 16c1db6 commit 00ca4b1

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/build-test-measure.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,22 +105,22 @@ jobs:
105105
- name: Detect ESLint coding standard violations
106106
if: >
107107
github.event.pull_request.head.repo.fork == true ||
108-
github.event.pull_request.user.login == 'dependabot'
108+
github.event.pull_request.user.login == 'dependabot[bot]'
109109
run: npm run lint:js
110110

111111
- name: Generate ESLint coding standard violations report
112112
# Prevent generating the ESLint report if PR is from a fork or authored by Dependabot.
113113
if: >
114114
! ( github.event.pull_request.head.repo.fork == true ||
115-
github.event.pull_request.user.login == 'dependabot' )
115+
github.event.pull_request.user.login == 'dependabot[bot]' )
116116
run: npm run lint:js:report
117117
continue-on-error: true
118118

119119
- name: Annotate code linting results
120120
# The action cannot annotate the PR when run from a PR fork or was authored by Dependabot.
121121
if: >
122122
! ( github.event.pull_request.head.repo.fork == true ||
123-
github.event.pull_request.user.login == 'dependabot' )
123+
github.event.pull_request.user.login == 'dependabot[bot]' )
124124
uses: ataylorme/[email protected]
125125
with:
126126
repo-token: '${{ secrets.GITHUB_TOKEN }}'
@@ -667,7 +667,7 @@ jobs:
667667
if: >
668668
github.event.pull_request.draft == false &&
669669
github.event.pull_request.head.repo.fork == false &&
670-
github.event.pull_request.user.login != 'dependabot'
670+
github.event.pull_request.user.login != 'dependabot[bot]'
671671
runs-on: ubuntu-latest
672672
needs:
673673
- lint-css

.github/workflows/qa-integrate.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,22 +74,22 @@ jobs:
7474
- name: Detect ESLint coding standard violations
7575
if: >
7676
github.event.pull_request.head.repo.fork == true ||
77-
github.event.pull_request.user.login == 'dependabot'
77+
github.event.pull_request.user.login == 'dependabot[bot]'
7878
run: npm run lint:js
7979

8080
- name: Generate ESLint coding standard violations report
8181
# Prevent generating the ESLint report if PR is from a fork or authored by Dependabot.
8282
if: >
8383
! ( github.event.pull_request.head.repo.fork == true ||
84-
github.event.pull_request.user.login == 'dependabot' )
84+
github.event.pull_request.user.login == 'dependabot[bot]' )
8585
run: npm run lint:js:report
8686
continue-on-error: true
8787

8888
- name: Annotate code linting results
8989
# The action cannot annotate the PR when run from a PR fork or was authored by Dependabot.
9090
if: >
9191
! ( github.event.pull_request.head.repo.fork == true ||
92-
github.event.pull_request.user.login == 'dependabot' )
92+
github.event.pull_request.user.login == 'dependabot[bot]' )
9393
uses: ataylorme/[email protected]
9494
with:
9595
repo-token: '${{ secrets.GITHUB_TOKEN }}'
@@ -213,7 +213,7 @@ jobs:
213213
if: >
214214
github.event.pull_request.draft == false &&
215215
github.event.pull_request.head.repo.fork == false &&
216-
github.event.pull_request.user.login != 'dependabot'
216+
github.event.pull_request.user.login != 'dependabot[bot]'
217217
runs-on: ubuntu-latest
218218
outputs:
219219
branch-name: ${{ steps.retrieve-branch-name.outputs.branch_name }}

0 commit comments

Comments
 (0)