Skip to content

Commit

Permalink
fix(ci): correct prepare-build release-to logic
Browse files Browse the repository at this point in the history
  • Loading branch information
zhijie-yang committed Dec 9, 2024
1 parent fa1fa37 commit 1d230b3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/image/prepare_single_image_build_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,10 @@ def main():
# so let's remove this field since we don't need it for the builds
del build["release"]

release_to = "true" if "release" in image_trigger else ""
release_to = "true" if any("release" in track for track in image_trigger["upload"]) else ""

print(image_trigger.keys())
print(image_trigger["upload"][0].keys())

write_github_output(release_to, builds, args.revision_data_dir)

Expand Down

0 comments on commit 1d230b3

Please sign in to comment.