fix: handle unknown artifact type in post_process_raw function (#2527)

Handle the case where the artifact type is unknown and the raw value is not None in the post_process_raw function. Set the raw value to "Built Successfully ✨" in this case.
This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-07-04 09:18:37 -03:00 • committed by GitHub
commit a9f955d916
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -49,7 +49,7 @@ def get_artifact_type(value, build_result=None) -> str:
def post_process_raw(raw, artifact_type: str):
if artifact_type == ArtifactType.STREAM.value:
raw = ""
elif artifact_type == ArtifactType.UNKNOWN.value:
elif artifact_type == ArtifactType.UNKNOWN.value and raw is not None:
raw = "Built Successfully ✨"
return raw