Skip to content

Tell the portfolio when the project list changes - #12

Merged
inosaint merged 1 commit into
mainfrom
claude/notify-portfolio
Sep 17, 2026
Merged

inosaint merged 1 commit into
mainfrom
claude/notify-portfolio

Conversation

@inosaint

Copy link
Copy Markdown
Owner

Pairs with inosaint/inosaint.github.io#55.

The portfolio homepage scrapes this site's tiles at build time — no feed, no live fetch — so a project added here is invisible there until that repo rebuilds. This fires a projects-updated repository_dispatch at it.

Scoped to index.html via a paths: filter, since that's the only file carrying class="tile" anchors. Image-only or CSS commits won't trigger a rebuild.

Why the wait step: this repo is on legacy Pages, which publishes a little after the push lands. Dispatching immediately would have the portfolio scrape the old index.html and bake in the list we're replacing — exactly the bug this is meant to fix. So it polls the served page (cache-busted) until it matches the committed file, up to 10 minutes, then dispatches anyway with a warning rather than failing.

Before this works: add a PORTFOLIO_DISPATCH_TOKEN secret to this repo — a fine-grained PAT scoped to inosaint/inosaint.github.io with Contents: read and write. Merge #55 first, or the dispatch lands on a workflow that doesn't yet listen for it.

🤖 Generated with Claude Code

https://claude.ai/code/session_01KWNyAfb9D1hp8ZJj3whaGv

inosaint.github.io scrapes this site's tiles at build time, with no feed and
no live fetch, so a project added here does not reach its homepage until that
repo rebuilds on its own.

Fire a projects-updated repository_dispatch at it on pushes that touch
index.html — the only file carrying tiles. This repo is on legacy Pages, which
publishes a little after the push lands, so poll the served page until it
matches the committed index.html first; dispatching straight away would have
the portfolio bake in the list it is replacing.

Needs a PORTFOLIO_DISPATCH_TOKEN secret: a PAT with contents:write on
inosaint/inosaint.github.io.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KWNyAfb9D1hp8ZJj3whaGv
@inosaint
inosaint merged commit ad69bdf into main Sep 17, 2026
@inosaint
inosaint deleted the claude/notify-portfolio branch September 17, 2026 12:39
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.

1 participant