Skip to content

Conversation

@cristiam86
Copy link
Member

@cristiam86 cristiam86 commented Jan 28, 2026

Adds a GitHub Actions workflow that automatically triggers a Netlify build with cache clearing whenever code is pushed to the main branch.

This ensures that documentation updates are reflected immediately without stale cached content, improving the reliability of deployments after merges.

Changes:

  • New workflow file .github/workflows/netlify-clear-cache.yml
  • Uses NETLIFY_BUILD_HOOK_URL secret with clear_cache=true parameter

Summary by CodeRabbit

  • Chores
    • Updated deployment configuration to automatically clear cache on main branch pushes.

✏️ Tip: You can customize this high-level summary in your review settings.

Triggers a Netlify build with cache clearing when code is pushed to main branch.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@netlify
Copy link

netlify bot commented Jan 28, 2026

Deploy Preview for genlayer-docs ready!

Name Link
🔨 Latest commit fff8b5c
🔍 Latest deploy log https://app.netlify.com/projects/genlayer-docs/deploys/697958a63b1fac00080785f3
😎 Deploy Preview https://deploy-preview-338--genlayer-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

@vercel
Copy link
Contributor

vercel bot commented Jan 28, 2026

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

Project Deployment Review Updated (UTC)
genlayer-docs Ready Ready Preview, Comment Jan 28, 2026 0:30am

Request Review

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 28, 2026

Caution

Review failed

The pull request is closed.

📝 Walkthrough

Walkthrough

A new GitHub Actions workflow is added that automatically triggers on pushes to the main branch, executing a curl command to Netlify's build hook to clear the deployment cache and redeploy with a descriptive deployment title.

Changes

Cohort / File(s) Summary
GitHub Actions Workflow
\.github/workflows/netlify-clear-cache\.yml
Adds new workflow triggered on main branch pushes to clear Netlify cache via build hook with curl request and cache-clearing parameters

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Poem

🐰 A webhook hops through the GitHub gate,
To Netlify's cache, it won't be late,
With curl and branch names all aligned,
Clean deploys are sure to find,
The main branch gleams, both bright and free!


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@cristiam86 cristiam86 merged commit fe774e2 into main Jan 28, 2026
7 of 9 checks passed
@cristiam86 cristiam86 deleted the clear-netlify-cache-on-merge-to-main branch January 28, 2026 00:32
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.

2 participants