Skip to content

Commit 27e5c69

Browse files
authored
fix: variable named file overwriting
1 parent d8e5f1b commit 27e5c69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stale_repos.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,8 @@ def output_to_json(inactive_repos, file=None):
242242
with open(os.environ["GITHUB_OUTPUT"], "a") as file_handle:
243243
print(f"inactiveRepos={inactive_repos_json}", file=file_handle)
244244

245-
with file or open("stale_repos.json", "w", encoding="utf-8") as file:
246-
file.write(inactive_repos_json)
245+
with file or open("stale_repos.json", "w", encoding="utf-8") as json_file:
246+
json_file.write(inactive_repos_json)
247247

248248
print("Wrote stale repos to stale_repos.json")
249249

0 commit comments

Comments
 (0)