Skip to content

Simplify manual dispatch: drop build-ref, make publish-env a dropdown - #387

Merged
recrwplay merged 2 commits into
devfrom
simplify-manual-dispatch-inputs
Oct 9, 2026
Merged

recrwplay merged 2 commits into
devfrom
simplify-manual-dispatch-inputs

Conversation

@recrwplay

Copy link
Copy Markdown
Contributor

Summary

Manually dispatching Generate HTML/PDF showed three boxes where only one was ever really needed: GitHub's own built-in "Use workflow from" branch selector, our own build-ref text input (always the same branch as the selector above it - confirmed in both the manual case, where you'd just retype the same branch, and the automated docs-trigger-builds.yml dispatch, which already sets ref: and the build-ref input to the exact same value in the same API call), and publish-env.

  • Dropped build-ref entirely and read github.ref_name directly instead - it never carried information github.ref_name didn't already have.
  • publish-env can't be dropped the same way: when DOCS_DEV_BRANCH == DOCS_PROD_BRANCH, branch name alone can't tell the two builds apart, so it stays as a real override - now a type: choice dropdown (blank/dev/prod) with a hint that explains that one case in plain language instead of naming the internal vars.DOCS_DEV_BRANCH/DOCS_PROD_BRANCH variables.

Matches docs-template#70.

Test plan

  • Validated YAML syntax of all three edited workflow files.
  • Manually traced both dispatch paths (UI and docs-trigger-builds.yml's API call) to confirm github.ref_name is always identical to what build-ref used to hold, in every case including DOCS_DEV_BRANCH == DOCS_PROD_BRANCH.

Manually dispatching Generate HTML/PDF showed three boxes where only one
was ever really needed: GitHub's own built-in "Use workflow from" branch
selector, our own build-ref text input (always the same branch as the
selector above it, since there's no reason in this pipeline for them to
differ - confirmed in both the manual case, where you'd just retype the
same branch, and the automated docs-trigger-builds.yml dispatch, which
already sets ref: and the build-ref input to the exact same value in the
same API call), and publish-env. Dropped build-ref entirely and read
github.ref_name directly instead - it never carried information
github.ref_name didn't already have.

publish-env can't be dropped the same way: when DOCS_DEV_BRANCH ==
DOCS_PROD_BRANCH, branch name alone can't tell the two builds apart, so it
stays as a real override - now a type: choice dropdown (blank/dev/prod)
with a hint that explains that one case in plain language instead of
naming the internal vars.DOCS_DEV_BRANCH/DOCS_PROD_BRANCH variables.
@neo4j-docops-agent

neo4j-docops-agent commented Oct 9, 2026 •

Copy link
Copy Markdown
Collaborator

Thanks for the documentation updates.

The preview documentation has now been torn down - reopening this PR will republish it.

@recrwplay
recrwplay merged commit b73bc46 into dev Oct 9, 2026
4 checks passed
@recrwplay
recrwplay deleted the simplify-manual-dispatch-inputs branch October 9, 2026 11:54
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