Skip to content

ci: pass VITE_FRINGE_SHEET_NAME to the code-quality workflow#229

Open
rileychh wants to merge 1 commit into
static-staff-datafrom
fix-fringe-ci-env
Open

ci: pass VITE_FRINGE_SHEET_NAME to the code-quality workflow#229
rileychh wants to merge 1 commit into
static-staff-datafrom
fix-fringe-ci-env

Conversation

@rileychh
Copy link
Copy Markdown
Member

@rileychh rileychh commented May 4, 2026

loaders/fringe.data.ts reads env.VITE_FRINGE_SHEET_NAME, but only deploy-to-pages.yaml exports it — code-quality.yaml doesn't. On PR builds the URL becomes …/values/undefined?key=…, Sheets returns 400, and every CI log carries Error fetching fringes: No data found in the spreadsheet. Non-fatal (loader catches and returns `[]`), but it leaves PR previews with an empty Fringe section.

The repo secret already exists (created 2025-08-02); this one line wires it through.

Test plan

  • CI green
  • Fringe section on the preview renders all 9 rows

@vercel
Copy link
Copy Markdown

vercel Bot commented May 4, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
2025 Ready Ready Preview, Comment May 10, 2026 8:41am

@rileychh rileychh requested a review from mirumodapon May 4, 2026 17:18
The Fringe loader reads `env.VITE_FRINGE_SHEET_NAME`, but only
deploy-to-pages.yaml exports it. In code-quality.yaml the variable was
undefined, so the loader's URL became `…/values/undefined?key=…`, Sheets
returned 400 INVALID_ARGUMENT, and the loader logged
`Error fetching fringes: No data found in the spreadsheet` on every PR build.

Mirror the deploy workflow's env block so PR builds see the same secret.
@rileychh rileychh force-pushed the fix-fringe-ci-env branch from b24bdfc to 7b6e3a7 Compare May 10, 2026 08:39
@rileychh rileychh changed the base branch from main to static-staff-data May 10, 2026 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants