Skip to content

ci: trigger product-docs API reference regeneration (PDOCS-5104) - #1340

Merged
SSharma-10 merged 3 commits into
mainfrom
tconsigny/pdocs-5104-trigger-product-docs-regen
Nov 20, 2026
Merged

SSharma-10 merged 3 commits into
mainfrom
tconsigny/pdocs-5104-trigger-product-docs-regen

Conversation

@tconsigny

@tconsigny tconsigny commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Regenerates the public API reference on docs.digitalocean.com after every spec publish, instead of waiting for the product-docs daily run (PDOCS-5104).

trigger-product-docs-regen.yml: when Spec Main succeeds on main, dispatches product-docs daily-jobs.yml with openapi-sha set to the first 7 characters of the Spec Main run's head_sha. product-docs fetches DigitalOcean-public-<sha>.v2.yaml, the revision file Spec Main just uploaded. Uses the existing WORKFLOW_TRIGGER_TOKEN, like the pydo and dots triggers.

The SHA comes from workflow_run.head_sha rather than a fresh checkout. A checkout gets the latest main, which can be a commit whose revision file is not uploaded yet when two merges land close together.

The receiving side (the openapi-sha input) merged in digitalocean/product-docs PR 7104. The product-docs scheduled run stays as the fallback.

Test plan

  • actionlint passes on the new workflow.
  • A product-docs branch dispatch with openapi-sha=248d3a2 fetched that revision file and regenerated the API reference end to end.
  • After merge: the first Spec Main run on main dispatches a product-docs run that succeeds. This also confirms WORKFLOW_TRIGGER_TOKEN can dispatch workflows in product-docs.

@SSharma-10 SSharma-10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm

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