forked from docs/doc-exports
fixing broken loop
This commit is contained in:
@ -211,9 +211,8 @@ jobs:
|
||||
return re.search(pattern, changed_files) is not None
|
||||
|
||||
# Loop through docs (assuming structure similar to ansible)
|
||||
for doc0 in doc_exports_var.get('docs', []):
|
||||
for doc0 in doc_exports_var:
|
||||
# Here doc0 = {service_type:..., repository:..., service_title:..., ...}
|
||||
# We expect doc0 to contain a 'docs' list (per your subelements('docs'))
|
||||
for doc1 in doc0.get('docs', []):
|
||||
html_loc = doc1.get('html_location')
|
||||
rst_loc = doc1.get('rst_location')
|
||||
|
||||
Reference in New Issue
Block a user