From 57604ad52d09167496a62d0fac7c8bc7480adbec Mon Sep 17 00:00:00 2001 From: Tomas Dvorak Date: Sat, 3 Feb 2024 09:56:38 +0100 Subject: [PATCH] docs: add fallback branch name Signed-off-by: Tomas Dvorak --- scripts/docs_examples_generator/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/docs_examples_generator/config.py b/scripts/docs_examples_generator/config.py index 814e6f92..1a7f931a 100644 --- a/scripts/docs_examples_generator/config.py +++ b/scripts/docs_examples_generator/config.py @@ -7,7 +7,7 @@ dirname = Path(__file__).parent.absolute() dotenv.load_dotenv() -_branch_name = os.environ["BRANCH_NAME"] +_branch_name = os.environ.get("BRANCH_NAME", "main") class GeneratorConfig(BaseModel):