Skip to content

Commit cded046

Browse files
authored
docs: generate_packages_doc.py: guard against no pipeline info (#188)
The docs generation script fails if there's no pipeline info, which is the case now for our GitHub builds since they don't provide a pipeline ID on GitLab to reference. Guard against this so that it doesn't cause build failures, but leave the logic there in case we ever need to re-deploy the new version of this script on GitLab infrastructure. Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
1 parent e767d52 commit cded046

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

docs/packages/generate_packages_doc.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ def get_upstream_tag(package_name, version, package_list):
8080
(
8181
pkg["pipeline"]["ref"]
8282
for pkg in package_list
83-
if pkg["name"] == package_name and pkg["version"].startswith(version)
83+
if pkg["name"] == package_name
84+
and pkg["version"].startswith(version)
85+
and "pipeline" in pkg
8486
),
8587
None,
8688
)

0 commit comments

Comments
 (0)