Skip to content

Commit

Permalink
fix checking update
Browse files Browse the repository at this point in the history
  • Loading branch information
key-moon committed Jun 2, 2024
1 parent f075a35 commit e48d950
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crawler/runner/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def pull():
run(["git", "-C", repository_path, "pull"], check=True)

def commit_and_push(with_rebase=True, overwrite=False):
if run(["git", "-C", repository_path, "diff", "--quiet"], capture_output=True).returncode != 0:
if len(get_dirty_files()):
print("[+] commiting changes and syncing...")
run(["git", "-C", repository_path, "add", "."], check=True)
run(["git", "-C", repository_path, "commit", "-m", f"[auto] refresh caches"], check=True)
Expand Down

0 comments on commit e48d950

Please sign in to comment.