Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(build): don't run bundlesize action on PRs from forks #11887

Merged
merged 1 commit into from
Oct 1, 2024
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
3 changes: 3 additions & 0 deletions .github/workflows/pr-bundlesize-compare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
jobs:
# Build current and upload stats.json
build-head:
if: github.event.pull_request.head.repo.full_name == github.repository
name: "Build head"
permissions:
contents: read
Expand Down Expand Up @@ -46,6 +47,7 @@ jobs:

# Build base for comparison and upload stats.json
build-base:
if: github.event.pull_request.head.repo.full_name == github.repository
name: "Build base"
permissions:
contents: read
Expand Down Expand Up @@ -86,6 +88,7 @@ jobs:

# run the action against the stats.json files
compare:
if: github.event.pull_request.head.repo.full_name == github.repository
name: "Compare base & head bundle sizes"
runs-on: ubuntu-latest
needs: [build-base, build-head]
Expand Down
Loading