Skip to content

Conversation

@hakonhagland
Copy link
Collaborator

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

  3. Clarified comment to distinguish between manual release branch creation and automatic branch detection

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).

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

3. Clarified comment to distinguish between manual release branch creation
   and automatic branch detection

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).
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.

1 participant