Rebuild when the AI projects list changes - #55
Merged
Merged
Conversation
The homepage's Projects letter is scraped from kenneth.dsouza.im/ai at build time, so projects added in inosaint/ai stayed invisible here until something else happened to push master. The last such gap ran two weeks and hid three projects. Accept a repository_dispatch (projects-updated) from that repo, plus a workflow_dispatch button for refreshing by hand. The deploy gate flips from "is a push" to "is not a pull_request" so both new triggers reach it; the branch check still keeps it to master, which is where dispatches land anyway. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KWNyAfb9D1hp8ZJj3whaGv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The homepage's Projects letter is scraped from
kenneth.dsouza.im/aiat build time (astro-site/src/pages/index.astro). Nothing was telling this repo to rebuild when that list changed, so three projects sat invisible for two weeks until an unrelated push happened to redeploy.This side: accept a
repository_dispatchof typeprojects-updated, plus aworkflow_dispatchbutton for manual refreshes. The deploy gate flips fromevent_name == 'push'toevent_name != 'pull_request'so both new triggers reach it — therefs/heads/mastercheck still holds, and dispatches always run on the default branch anyway.Other side: inosaint/ai#new adds the notifier that fires it.
Before this works: a
PORTFOLIO_DISPATCH_TOKENsecret oninosaint/ai— a fine-grained PAT scoped to this repo with Contents: read and write.🤖 Generated with Claude Code
https://claude.ai/code/session_01KWNyAfb9D1hp8ZJj3whaGv