From c25e6142a8bfb1afab25f3b7f191f788b1603b48 Mon Sep 17 00:00:00 2001 From: Tomer Salakoff Date: Mon, 6 Mar 2023 09:24:45 +0200 Subject: [PATCH] Moved the encoding call --- github_action_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/github_action_utils.py b/github_action_utils.py index eaa0291..0c790d8 100644 --- a/github_action_utils.py +++ b/github_action_utils.py @@ -142,8 +142,8 @@ def _build_file_input(name: str, value: Any) -> bytes: f"{_escape_property(name)}" f"<<{ACTION_ENV_DELIMITER}\n" f"{_escape_data(value)}\n" - f"{ACTION_ENV_DELIMITER}\n".encode("utf-8") - ) + f"{ACTION_ENV_DELIMITER}\n" + ).encode("utf-8") def set_output(name: str, value: Any, use_subprocess: Union[bool, None] = None) -> None: