Skip to content

fix(developer-hub): fix update-llms-txt workflow failures#3496

Merged
aditya520 merged 2 commits intomainfrom
fix/update-llms-txt-workflow
Feb 23, 2026
Merged

fix(developer-hub): fix update-llms-txt workflow failures#3496
aditya520 merged 2 commits intomainfrom
fix/update-llms-txt-workflow

Conversation

@aditya520
Copy link
Member

Summary

  • Skip fork PRs: Added github.event.pull_request.head.repo.full_name == github.repository check so the workflow doesn't run on fork PRs (it can't push commits back to fork branches, causing checkout failures — see PR docs(developer-hub): add Sui integration guide for Pyth Pro/Lazer #3495)
  • Fix empty diff crash: Removed grep -v '^$' from the dedup pipeline — under set -eo pipefail, grep returns exit code 1 on empty input, killing the workflow when no .mdx files are changed (see PR Update solana-mainnet.json #3493). sort -u and xargs already handle empty lines.

Test plan

🤖 Generated with Claude Code

…d empty diffs

Skip fork PRs since the workflow can't push commits back to fork branches.
Remove `grep -v '^$'` from the dedup pipeline to avoid exit code 1 when
no .mdx files are changed (e.g. JSON-only PRs).

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

vercel bot commented Feb 23, 2026

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

Project Deployment Actions Updated (UTC)
api-reference Ready Ready Preview, Comment Feb 23, 2026 3:29pm
component-library Ready Ready Preview, Comment Feb 23, 2026 3:29pm
developer-hub Ready Ready Preview, Comment Feb 23, 2026 3:29pm
entropy-explorer Ready Ready Preview, Comment Feb 23, 2026 3:29pm
insights Ready Ready Preview, Comment Feb 23, 2026 3:29pm
proposals Ready Ready Preview, Comment Feb 23, 2026 3:29pm
staking Ready Ready Preview, Comment Feb 23, 2026 3:29pm

Request Review

Restrict the update-llms-txt workflow path filter from `**` to `**/*.mdx`
so it only triggers when documentation files change, not JSON or other files.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@aditya520 aditya520 merged commit 4bbfa8e into main Feb 23, 2026
8 checks passed
@aditya520 aditya520 deleted the fix/update-llms-txt-workflow branch February 23, 2026 15: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.

2 participants