Skip to content

fix(docs): use workflow_run trigger to rebuild docs after releases#192

Open
trobanga wants to merge 1 commit intomainfrom
191-fix-docs-release-trigger
Open

fix(docs): use workflow_run trigger to rebuild docs after releases#192
trobanga wants to merge 1 commit intomainfrom
191-fix-docs-release-trigger

Conversation

@trobanga
Copy link
Collaborator

Summary

  • Replace dead release: [published] trigger with workflow_run watching CI completions
  • Filter to only rebuild docs for push-to-main or successful tag-based CI runs (no PR/schedule noise)
  • Show dev version on push-to-main builds, actual release tag on release builds

Closes #191

The release: [published] trigger never fired because the release is
created by the CI workflow using GITHUB_TOKEN, and GitHub suppresses
workflow triggers from GITHUB_TOKEN-created events.

Replace with workflow_run watching CI completions, filtered to only
run for tag-based (release) CI runs. Push-to-main builds now show
"dev" as the version, while release builds show the actual tag.

Closes #191
@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.68%. Comparing base (5228e0a) to head (d067fe0).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #192   +/-   ##
=======================================
  Coverage   84.68%   84.68%           
=======================================
  Files          46       46           
  Lines        4773     4773           
=======================================
  Hits         4042     4042           
  Misses        567      567           
  Partials      164      164           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

fix(docs): release event never triggers docs rebuild due to GITHUB_TOKEN limitation

2 participants