Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a494bf7

Browse files
committedOct 27, 2021
fix platform lookup
1 parent 8f62488 commit a494bf7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎readme_builder.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ def get_key_value(obj, key):
5151
with open(os.environ['BUILDER_WORKFLOW_PATH'], "r") as stream:
5252
try:
5353
build_spec = yaml.safe_load(stream)
54-
platform = get_key_value(build_spec, "platform")
54+
platform_guess = get_key_value(build_spec, "platform")
55+
if platform_guess:
56+
platform = platform_guess
5557
strategy = get_key_value(build_spec, "strategy")
5658
if strategy and 'matrix' in strategy:
5759
if 'target_base' in strategy['matrix']:

0 commit comments

Comments
 (0)
Please sign in to comment.