Skip to content

Commit

Permalink
Better debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric-Arellano committed Feb 21, 2024
1 parent 96721ac commit 2c190da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion example_docs/docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,11 @@ def determine_github_branch() -> str:
We need to decide whether to use `stable/<version>` vs. `main` for dev builds. Refer to https://docs.github.com/en/actions/learn-github-actions/variables for how we determine this with GitHub Actions.
"""
print(os.environ)
# If not `GITHUB_REF_NAME` is not set, default to `main`. This
# is relevant for local builds.
if "GITHUB_REF_NAME" not in os.environ:
return "main"
return "<default>"

# PR workflows set the branch they're merging into.
if base_ref := os.environ.get("GITHUB_BASE_REF"):
Expand Down

0 comments on commit 2c190da

Please sign in to comment.