pipeline: don't bomb when logging int value's length (GHA outputs)

This commit is contained in:
Ricardo Pardini
2023-10-13 20:55:42 +02:00
committed by Igor
parent ed39cb04fb
commit 568ed3ae39

View File

@@ -17,7 +17,8 @@ def set_gha_output(name, value):
with open(os.environ['GITHUB_OUTPUT'], 'a') as fh:
print(f'{name}={value}', file=fh)
log.info(f"Set GHA output '{name}' to ({len(value)} bytes) '{value}'")
length = len(f"{value}")
log.info(f"Set GHA output '{name}' to ({length} bytes) '{value}'")
def set_multiline_gha_output(name, value):