Skip to content

Commit be59b95

Browse files
authored
Update health-metrics-pull-request.yml (#8158)
PRs created by Dependabot do not have privledges to run our non-critical Health Check CI workflows. Currently these workflows error-out on all Dependabot changes. It would be a better developer experience if these steps were simply skipped, so it doesn't look like we're merging a PR with errors.
1 parent c9a9bab commit be59b95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/health-metrics-pull-request.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ env:
3535
jobs:
3636
binary-size:
3737
name: Binary Size
38-
if: github.event_name == 'push' || !(github.event.pull_request.head.repo.fork)
38+
if: github.event_name == 'push' || !(github.event.pull_request.head.repo.fork) && github.actor != 'dependabot[bot]'
3939
runs-on: ubuntu-latest
4040
steps:
4141
- uses: actions/checkout@v3
@@ -52,7 +52,7 @@ jobs:
5252
run: yarn size-report
5353
modular-export-size:
5454
name: Binary Size For Modular Exports
55-
if: github.event_name == 'push' || !(github.event.pull_request.head.repo.fork)
55+
if: github.event_name == 'push' || !(github.event.pull_request.head.repo.fork) && github.actor != 'dependabot[bot]'
5656
runs-on: ubuntu-latest
5757
steps:
5858
- uses: actions/checkout@v3

0 commit comments

Comments
 (0)