Skip to content

Fix llms.txt workflow to use PR instead of direct push#2579

Merged
ctauchen merged 2 commits intotigera:mainfrom
ctauchen:10-march
Mar 10, 2026
Merged

Fix llms.txt workflow to use PR instead of direct push#2579
ctauchen merged 2 commits intotigera:mainfrom
ctauchen:10-march

Conversation

@ctauchen
Copy link
Collaborator

Summary

  • The weekly generate-llms-txt workflow was failing because it tried to push directly to main, which is a protected branch
  • Changed the workflow to create a dated branch (chore/update-llms-txt-YYYY-MM-DD) and open a PR against main instead
  • Added pull-requests: write permission so the workflow can create PRs

Test plan

  • Trigger the workflow manually via workflow_dispatch and verify it creates a PR instead of failing

🤖 Generated with Claude Code

@ctauchen ctauchen requested a review from a team as a code owner March 10, 2026 14:53
Copilot AI review requested due to automatic review settings March 10, 2026 14:53
@netlify
Copy link

netlify bot commented Mar 10, 2026

Deploy Preview for calico-docs-preview-next ready!

Name Link
🔨 Latest commit 5505897
🔍 Latest deploy log https://app.netlify.com/projects/calico-docs-preview-next/deploys/69b0343820b4cd0008a5c100
😎 Deploy Preview https://deploy-preview-2579--calico-docs-preview-next.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.

@netlify
Copy link

netlify bot commented Mar 10, 2026

Deploy Preview succeeded!

Built without sensitive environment variables

Name Link
🔨 Latest commit 5505897
🔍 Latest deploy log https://app.netlify.com/projects/tigera/deploys/69b03438ddfcb000080f6087
😎 Deploy Preview https://deploy-preview-2579--tigera.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 68 (no change from production)
Accessibility: 98 (no change from production)
Best Practices: 92 (no change from production)
SEO: 100 (no change from production)
PWA: -
View the detailed breakdown and full score reports

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

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the weekly generate-llms-txt GitHub Actions workflow so it no longer attempts to push directly to protected main, instead pushing changes to a new branch and opening a PR back to main.

Changes:

  • Grant the workflow pull-requests: write permission.
  • Replace the direct push-to-main step with logic that creates a dated branch, pushes it, and opens a PR via gh pr create.

ctauchen and others added 2 commits March 10, 2026 15:09
The weekly generate-llms-txt action was failing because it tried to push
directly to main, which is a protected branch. Now it creates a dated
branch and opens a PR instead.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Use checkout -B and force-with-lease push so the workflow can safely
rerun on the same day. Only create a PR if one doesn't already exist
for the branch.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ctauchen ctauchen merged commit a54ee1c into tigera:main Mar 10, 2026
11 checks passed
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