From 447de3441b7a8517d3e4c909dc5dd4bb9837d0e7 Mon Sep 17 00:00:00 2001 From: t8y2 <1156263951@qq.com> Date: Fri, 18 Sep 2026 17:12:55 +0800 Subject: [PATCH] ci(mirrors): sync on tags and 3x daily schedule instead of per push --- .github/workflows/sync-mirrors.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/sync-mirrors.yml b/.github/workflows/sync-mirrors.yml index 3dfd21e16a..f4a8b3ea55 100644 --- a/.github/workflows/sync-mirrors.yml +++ b/.github/workflows/sync-mirrors.yml @@ -2,15 +2,17 @@ name: Sync Mirrors on: push: - branches: - - main tags: - "**" delete: + schedule: + # 3x daily (08:17/16:17/00:17 UTC+8), off the top of the hour to dodge the + # scheduled-run rush. Tags and deletes still sync immediately. + - cron: "17 */8 * * *" workflow_dispatch: -# Mirror providers reject concurrent forced updates to the same ref. Serialize all -# branch, tag, and delete events so rapid GitHub pushes cannot race each other. +# Mirror providers reject concurrent forced updates to the same ref. Serialize tag, +# delete, and scheduled runs so overlapping triggers cannot race each other. concurrency: group: sync-mirrors cancel-in-progress: false