Skip to content
Merged
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
9 changes: 8 additions & 1 deletion .github/workflows/size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,14 @@ jobs:
path: scripts/size
- run: node report.mjs size-head.json size-base.json > size-comment.md
working-directory: scripts/size
- uses: actions/github-script@v7
# The job summary carries the report on every PR. The comment only goes
# on PRs from this repository: a fork PR's token is read-only, so
# createComment answered 403 and the job showed as failed on every
# external PR.
- run: cat size-comment.md >> "$GITHUB_STEP_SUMMARY"
working-directory: scripts/size
- if: github.event.pull_request.head.repo.full_name == github.repository
uses: actions/github-script@v7
with:
script: |
const fs = require("fs");
Expand Down
Loading