From c72ba4b4d6fdbef7fe20eb1c70402a9b19ff7437 Mon Sep 17 00:00:00 2001 From: narugo1992 <117186571+narugo1992@users.noreply.github.com> Date: Thu, 28 Dec 2023 18:13:12 +0800 Subject: [PATCH] dev(narugo): add auto run --- .github/workflows/repack.yml | 2 +- skpick/online.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/repack.yml b/.github/workflows/repack.yml index a943b78..fb778e3 100644 --- a/.github/workflows/repack.yml +++ b/.github/workflows/repack.yml @@ -5,7 +5,7 @@ on: push: workflow_dispatch: schedule: - - cron: '0 14 * * *' + - cron: '0 6,14,22 * * *' jobs: unittest: diff --git a/skpick/online.py b/skpick/online.py index 772e835..83be7b6 100644 --- a/skpick/online.py +++ b/skpick/online.py @@ -31,7 +31,7 @@ def online_pick(src_repo: str, dst_repo: str): dst_index = [] dst_packages = [item['filename'] for item in dst_index] - for package in tqdm(natsorted(set(src_packages) - set(dst_packages))[:1]): + for package in tqdm(natsorted(set(src_packages) - set(dst_packages))): with TemporaryDirectory() as td_src, TemporaryDirectory() as td_dst: zip_file = os.path.join(td_src, package) download_file_to_file(