Skip to content

Commit

Permalink
Merge pull request #34 from github/local-testing
Browse files Browse the repository at this point in the history
fix: local testing
  • Loading branch information
zkoppert committed Jun 7, 2023
2 parents 026453d + be0c1ed commit 5f1804f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions stale_repos.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,10 @@ def output_to_json(inactive_repos):
inactive_repos_json = json.dumps(inactive_repos_json)

# add output to github action output
with open(os.environ['GITHUB_OUTPUT'], 'a') as fh:
print(f'inactiveRepos={inactive_repos_json}', file=fh)
# pylint: disable=unspecified-encoding
if os.environ.get("GITHUB_OUTPUT"):
with open(os.environ["GITHUB_OUTPUT"], "a") as file_handle:
print(f"inactiveRepos={inactive_repos_json}", file=file_handle)
return inactive_repos_json


Expand Down

0 comments on commit 5f1804f

Please sign in to comment.