Skip to content

ci: do not run benchmarks in forks - #4279

Merged
HiDeoo merged 2 commits into
withastro:mainfrom
trueberryless:ci/no-benchmarks-in-forks
Oct 23, 2026
Merged

HiDeoo merged 2 commits into
withastro:mainfrom
trueberryless:ci/no-benchmarks-in-forks

Conversation

@trueberryless

Copy link
Copy Markdown
Contributor

Description

This PR adds a check to the GitHub Action benchmark job to make sure it only runs in the withastro org and not in forks. The reason is that I noticed that the benchmark fails in forks because of missing permissions, here is an example run: https://github.com/trueberryless/withastro-starlight/actions/runs/39007600241/job/117323145054

@changeset-bot

changeset-bot Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: be2318e

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@netlify

netlify Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for astro-starlight ready!

Name Link
🔨 Latest commit be2318e
🔍 Latest deploy log https://app.netlify.com/projects/astro-starlight/deploys/6adb2161a1d80a456a6a7cd8
😎 Deploy Preview https://deploy-preview-4279--astro-starlight.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 100 (no change from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: -
View the detailed breakdown and full score reports
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions Bot added the 🚨 action Changes to GitHub Action workflows label Oct 17, 2026

@HiDeoo HiDeoo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, makes sense 🙌

I'll just note that this happens in forks where the user explicitly re-enables GH Actions (as GH disable them by default when a repository is forked). It can be useful to temporarily re-enable them for testing purposes but I would recommend disabling them again afterwards in most cases.

@HiDeoo
HiDeoo merged commit 9977062 into withastro:main Oct 23, 2026
19 checks passed
@trueberryless
trueberryless deleted the ci/no-benchmarks-in-forks branch October 23, 2026 09:06
@trueberryless

Copy link
Copy Markdown
Contributor Author

I'll just note that this happens in forks where the user explicitly re-enables GH Actions (as GH disable them by default when a repository is forked). It can be useful to temporarily re-enable them for testing purposes but I would recommend disabling them again afterwards in most cases.

Interesting. I can't remember activating them, but I must have at some point in the past it seems like. Thanks for the hint!

HiDeoo added a commit to HiDeoo/starlight that referenced this pull request Oct 28, 2026
* main: (22 commits)
  [i18nIgnore] docs: fix typo in configuration reference (withastro#4303)
  Fix sidebar autogeneration from the docs root directory (withastro#4299)
  [ci] format
  i18n(de): update resources (`community-content.mdx`, `plugins.mdx`) (withastro#4304)
  [i18nIgnore] docs: update link to renamed repository (withastro#4294)
  docs: replace plugin with blog post in resources (withastro#4293)
  i18n(ja): update plugins.mdx (withastro#4297)
  i18n(ja): update environmental-impact.mdx (withastro#4296)
  Fix error map issue with Zod ≥4.5 (withastro#4295)
  [ci] release (withastro#4274)
  Add fetchpriority=high on Hero images (withastro#4285)
  i18n(de): update `plugins.mdx` (withastro#4292)
  ci: do not run benchmarks in forks (withastro#4279)
  docs: add Plannedo to showcase (withastro#4281)
  docs: add starlight-myog to community plugins (withastro#4280)
  docs: add Starlight Group Pages plugin (withastro#4278)
  i18n(de): update `plugins.mdx` (withastro#4291)
  i18n(zh-cn): update community themes (withastro#4288)
  i18n(ja): update plugins.mdx and community-content.mdx (withastro#4283)
  i18n(ja): update themes.mdx (withastro#4284)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🚨 action Changes to GitHub Action workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants