Skip to content

Open docs PR automatically when Pester releases - #448

Merged
nohwnd merged 1 commit into
mainfrom
nohwnd-auto-regen-on-release
Aug 22, 2026
Merged

Open docs PR automatically when Pester releases#448
nohwnd merged 1 commit into
mainfrom
nohwnd-auto-regen-on-release

Conversation

@nohwnd

@nohwnd nohwnd commented Aug 22, 2026

Copy link
Copy Markdown
Member

I keep forgetting to regenerate the docs after a Pester release, so this checks for me.

check-pester-release.yml runs daily, asks PSGallery for the latest stable Pester in each line (latest overall for Current, 5.x for v5) and compares it to the version written into the generated command pages. If the docs are behind it calls generate-pester-docs.yml, which is unchanged except for now being callable, and the usual PR shows up. v4 is frozen at 4.10.1 so it is not checked.

PSGallery is the source and not the GitHub release, because that is where generate-command-reference.ps1 installs Pester from. A release that is tagged but not on the gallery yet cannot be used to build the docs anyway.

Two more things it handles: docs generated from a prerelease get updated once that same version goes stable, and a version is skipped when the docs-update/... branch already has a pull request, including a closed one, so a PR you close on purpose does not come back the next morning. That is also why I dropped branch-suffix: short-commit-hash, the branch name already contains the docs version and the Pester version, and without the suffix a re-run updates the existing PR instead of opening a second one.

Nothing to regenerate right now, Current is at 6.1.0 and v5 at 5.9.1, both match the gallery. I ran the detection step locally against this repo and against a fake older checkout to see both paths, and actionlint is clean on the new file.

🤖

Adds a daily workflow that compares the Pester version in the generated
command pages with the latest stable release on PSGallery, and calls the
existing docs-update workflow when they differ.

🤖
@nohwnd
nohwnd merged commit a0f52e3 into main Aug 22, 2026
4 checks passed
@nohwnd
nohwnd deleted the nohwnd-auto-regen-on-release branch August 22, 2026 06: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.

1 participant