Skip to content

Commit

Permalink
Fix for empty EXAMPLES_TO_BUILD var
Browse files Browse the repository at this point in the history
Signed-off-by: Sara Damiano <[email protected]>
  • Loading branch information
SRGDamia1 committed Aug 14, 2024
1 parent 0fadda7 commit 8124288
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 3 additions & 3 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and its stricter, better defined, brother [Common Changelog](https://common-changelog.org/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and its stricter, better defined, brother [Common Changelog](https://common-changelog.org/).

This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

***

Expand Down
5 changes: 4 additions & 1 deletion scripts/generate_job_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,10 @@

# %%
# Get the examples to build
if "EXAMPLES_TO_BUILD" in os.environ.keys():
if (
"EXAMPLES_TO_BUILD" in os.environ.keys()
and len(os.environ.get("EXAMPLES_TO_BUILD")) > 0
):
examples_to_build = [
example.strip() for example in os.environ.get("EXAMPLES_TO_BUILD").split(",")
]
Expand Down

0 comments on commit 8124288

Please sign in to comment.