Skip to content

Move CLI docs generator to scheduled action#158

Merged
jbellerb merged 1 commit intomainfrom
jae/push-rlxuxlmxqrzt
Mar 18, 2026
Merged

Move CLI docs generator to scheduled action#158
jbellerb merged 1 commit intomainfrom
jae/push-rlxuxlmxqrzt

Conversation

@jbellerb
Copy link
Copy Markdown
Contributor

Currently, generating CLI docs is part of the main CI action. Whenever
someone opens a pull request, the bot fetches the latest CLI, generates
new docs, and inserts a commit into the PR. The extra commit makes
PRs noisier to review and can cause merge conflicts. Instead, run the
generator on a weekly schedule.

The action has its own branch: actions/update-cli-docs. Every monday,
the action will checkout main, run the CLI tests, update the docs with
the week's CLI changes, and force push to the branch. Finally, the bot
either opens a new PR, or updates the previous week's if it hasn't been
merged yet.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 10, 2026

Preview Deployment

Name URL
Preview https://pr-158-superfly-sprites-docs.fly.dev

Commit: 2e14b06

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 10, 2026

Lighthouse Results

URL Performance Accessibility Best Practices SEO
/ 🟢 91 🟢 100 🟢 96 🟢 100

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 10, 2026

E2E Test Results

✅ Tests success

Ran against: https://pr-158-superfly-sprites-docs.fly.dev

Currently, generating CLI docs is part of the main CI action. Whenever
someone opens a pull request, the bot fetches the latest CLI, generates
new docs, and inserts a commit into the PR. The extra commit makes
PRs noisier to review and can cause merge conflicts. Instead, run the
generator on a weekly schedule.

The action has its own branch: `actions/update-cli-docs`. Every monday,
the action will checkout main, run the CLI tests, update the docs with
the week's CLI changes, and force push to the branch. Finally, the bot
either opens a new PR, or updates the previous week's if it hasn't been
merged yet.
Copy link
Copy Markdown
Collaborator

@kcmartin kcmartin left a comment

Choose a reason for hiding this comment

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

left one comment. Otherwise it looks good!

- name: Generate CLI Docs
run: pnpm generate:cli-docs
env:
SKIP_CLI_TESTS: 'true'
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Noticed SKIP_CLI_TESTS was dropped. The old CI step set it to true, but the new workflow doesn't. Was that intentional? Want to make sure the tests can pass in the Actions environment without a live Sprite.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes. I wasn't here when it was changed, but I had assumed the skip was there to avoid blocking PRs while CLI fixes are still being worked on. Since this workflow is async, it's fine to block and the tests can be re-enabled.

Copy link
Copy Markdown
Collaborator

@kcmartin kcmartin left a comment

Choose a reason for hiding this comment

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

Thanks for answering that question. LGTM!

@jbellerb jbellerb merged commit 96bbd8f into main Mar 18, 2026
5 checks passed
@jbellerb jbellerb deleted the jae/push-rlxuxlmxqrzt branch March 18, 2026 18:51
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