Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@ jobs:
tool: 'customSmallerIsBetter'
output-file-path: benchmark.json
alert-threshold: '130%'
comment-on-alert: true
# Only comment on alert when we can actually write to the repository.
# Pull requests from a fork get a read-only GITHUB_TOKEN, so posting the
# alert comment fails with "Resource not accessible by integration" and
# takes the whole job down, despite `fail-on-alert: false`.
comment-on-alert: ${{ github.event.pull_request.head.repo.fork != true }}
fail-on-alert: false
# GitHub API token to make a commit comment
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down