Skip to content

Commit 531fef7

Browse files
committed
Specify encoding when opening files
1 parent ccbc2c8 commit 531fef7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/check_latest_release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ jobs:
4141
if os.getenv("GITHUB_EVENT_NAME") == "workflow_dispatch":
4242
tag = os.getenv("INPUT_RELEASE_TAG")
4343
else:
44-
with open(os.getenv("GITHUB_EVENT_PATH"), "r") as event_file:
44+
with open(os.getenv("GITHUB_EVENT_PATH"), "r", encoding="utf-8") as event_file:
4545
event = json.load(event_file)
4646
tag = event["release"]["tag_name"]
4747
4848
module_name, module_version = tag.split("-")
49-
with open(os.getenv("GITHUB_OUTPUT"), "a") as output_file:
49+
with open(os.getenv("GITHUB_OUTPUT"), "a", encoding="utf-8") as output_file:
5050
output_file.write(f"module_name={module_name}\n")
5151
output_file.write(f"module_version={module_version}\n")
5252
# NOTE: we don't upload test coverage for this

0 commit comments

Comments
 (0)