Skip to content

Commit

Permalink
fix(build): don't run bundlesize action on PRs from forks (#11887)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoMcA authored Oct 1, 2024
1 parent 690b997 commit 9ddf73e
Showing 1 changed file with 3 additions and 0 deletions.
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

0 comments on commit 9ddf73e

Please sign in to comment.