Repository navigation
ci: do not run benchmarks in forks - #4279
Conversation
|
✅ Deploy Preview for astro-starlight ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
HiDeoo
left a comment
There was a problem hiding this comment.
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.
Interesting. I can't remember activating them, but I must have at some point in the past it seems like. Thanks for the hint! |
* 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) ...

Description
This PR adds a check to the GitHub Action benchmark job to make sure it only runs in the
withastroorg 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