ci(mirrors): sync on tags and 3x daily schedule instead of per push
This commit is contained in:
1 file changed
+6
-4
@@ -2,15 +2,17 @@ name: Sync Mirrors
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
tags:
|
tags:
|
||||||
- "**"
|
- "**"
|
||||||
delete:
|
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:
|
workflow_dispatch:
|
||||||
|
|
||||||
# Mirror providers reject concurrent forced updates to the same ref. Serialize all
|
# Mirror providers reject concurrent forced updates to the same ref. Serialize tag,
|
||||||
# branch, tag, and delete events so rapid GitHub pushes cannot race each other.
|
# delete, and scheduled runs so overlapping triggers cannot race each other.
|
||||||
concurrency:
|
concurrency:
|
||||||
group: sync-mirrors
|
group: sync-mirrors
|
||||||
cancel-in-progress: false
|
cancel-in-progress: false
|
||||||
|
|||||||
Reference in new issue
Block a user