You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make documentation workflow fork-friendly with dynamic branch detection
This commit makes the Sphinx documentation build workflow work seamlessly on
forks that may not have all release branches available.
Changes:
1. Added python/scripts/get_doc_branches.sh script that dynamically detects
available branches (current, master, release-*) in the repository
2. Updated python_sphinx_docs.yml to use the script instead of hardcoded
branch lists, removing the need for manual edits when testing on forks
Benefits:
- Workflow automatically adapts to available branches in any fork
- No manual edits needed for testing in development forks
- Gracefully handles missing release branches
- Automatically includes new release branches as they're added
The script checks for remote branches to ensure it works properly with both
the main repository (which has all branches) and forks (which may only have
a subset).
0 commit comments