Skip to content

Commit 538d88d

Browse files
fix: add UTF-8 encoding to file open operation
This fixes the lint-python-utf8-encoding.py linter failure by explicitly specifying encoding='utf8' when opening the GITHUB_OUTPUT file.
1 parent e0515b9 commit 538d88d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/handle_potential_conflicts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def set_github_output(name, value):
6060
return
6161

6262
try:
63-
with open(os.environ['GITHUB_OUTPUT'], 'a') as f:
63+
with open(os.environ['GITHUB_OUTPUT'], 'a', encoding='utf8') as f:
6464
# For multiline values, use the delimiter syntax
6565
if '\n' in str(value):
6666
delimiter = f"EOF_{uuid.uuid4()}"

0 commit comments

Comments
 (0)