Skip to content

Commit

Permalink
bug fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
DingXuefeng committed Mar 8, 2022
1 parent 5891eba commit 68265e9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cpp_linter/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -741,14 +741,14 @@ def main():
os.chdir(args.repo_root)

exit_early = False
with open(GITHUB_EVEN_PATH, "r", encoding="utf-8") as payload:
Globals.EVENT_PAYLOAD = json.load(payload)
if logger.getEffectiveLevel() <= logging.DEBUG:
start_log_group("Event json from the runner")
logger.debug(json.dumps(Globals.EVENT_PAYLOAD))
end_log_group()
if args.files_changed_only:
# load event's json info about the workflow run
with open(GITHUB_EVEN_PATH, "r", encoding="utf-8") as payload:
Globals.EVENT_PAYLOAD = json.load(payload)
if logger.getEffectiveLevel() <= logging.DEBUG:
start_log_group("Event json from the runner")
logger.debug(json.dumps(Globals.EVENT_PAYLOAD))
end_log_group()
get_list_of_changed_files()
exit_early = not filter_out_non_source_files(
args.extensions,
Expand Down

0 comments on commit 68265e9

Please sign in to comment.