canonical / sphinx-docs-starter-pack

A documentation starter-pack
https://canonical-starter-pack.readthedocs-hosted.com/
Other
15 stars 39 forks source link

Refine triggers to avoid replicated runs on PRs #267

Closed farshidtz closed 2 months ago

farshidtz commented 2 months ago

The workflow currently runs twice on PRs, on every commit from a branch: image

This is because the trigger branch for push event isn't restricted to main.

This isn't an issue on PRs with a forked repo head, only on those from an internal branch.