diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml index 6943410..0bb35bc 100644 --- a/.github/workflows/mirror.yml +++ b/.github/workflows/mirror.yml @@ -8,7 +8,7 @@ on: type: boolean default: false schedule: - - cron: '0 5 * * *' # 12 AM CDT + - cron: '30 3 * * *' # 10:30 PM CDT jobs: mirror: diff --git a/.github/workflows/rename-gone-mirrors.yml b/.github/workflows/rename-gone-mirrors.yml index c12484b..712783d 100644 --- a/.github/workflows/rename-gone-mirrors.yml +++ b/.github/workflows/rename-gone-mirrors.yml @@ -3,7 +3,7 @@ name: Rename deleted GitHub mirrors on: workflow_dispatch: schedule: - - cron: '30 3 * * *' # 10:30 PM CDT + - cron: '0 2 * * *' # 9 PM CDT jobs: rename: diff --git a/.github/workflows/sync-issues.yml b/.github/workflows/sync-issues.yml index f63db55..c796753 100644 --- a/.github/workflows/sync-issues.yml +++ b/.github/workflows/sync-issues.yml @@ -3,7 +3,7 @@ name: Sync issues to Gitea on: workflow_dispatch: schedule: - - cron: '0 8 * * *' # 3 AM CDT + - cron: '30 6 * * *' # 1:30 AM CDT concurrency: group: sync-issues diff --git a/.github/workflows/sync-releases.yml b/.github/workflows/sync-releases.yml index e44153f..5d3142a 100644 --- a/.github/workflows/sync-releases.yml +++ b/.github/workflows/sync-releases.yml @@ -3,7 +3,7 @@ name: Sync releases to Gitea on: workflow_dispatch: schedule: - - cron: '30 6 * * *' # 1:30 AM CDT + - cron: '0 5 * * *' # 12 AM CDT concurrency: group: sync-releases diff --git a/README.md b/README.md index 462e244..710d246 100644 --- a/README.md +++ b/README.md @@ -8,10 +8,10 @@ GitHub Actions that back up every GitHub repo I own (personal and org) to a self | Workflow | Schedule (UTC) | Script | Does | | --- | --- | --- | --- | -| Rename deleted GitHub mirrors | 03:30 (10:30 PM CDT) | `rename-gone-mirrors.js` | Renames mirrors whose GitHub repo was deleted or moved to `-goneN` and freezes them | -| Mirror to Gitea | 05:00 (12 AM CDT) | `mirror.js` | Creates missing orgs and pull mirrors, syncs repo/org visibility, descriptions and org avatars | -| Sync releases to Gitea | 06:30 (1:30 AM CDT) | `sync-releases.js` | Copies GitHub releases (title, notes, assets) onto the mirrors | -| Sync issues to Gitea | 08:00 (3 AM CDT) | `sync-issues.js` | Copies GitHub issues and their comments onto the mirrors | +| Rename deleted GitHub mirrors | 02:00 (9 PM CDT) | `rename-gone-mirrors.js` | Renames mirrors whose GitHub repo was deleted or moved to `-goneN` and freezes them | +| Mirror to Gitea | 03:30 (10:30 PM CDT) | `mirror.js` | Creates missing orgs and pull mirrors, syncs repo/org visibility, descriptions and org avatars | +| Sync releases to Gitea | 05:00 (12 AM CDT) | `sync-releases.js` | Copies GitHub releases (title, notes, assets) onto the mirrors | +| Sync issues to Gitea | 06:30 (1:30 AM CDT) | `sync-issues.js` | Copies GitHub issues and their comments onto the mirrors | Each runs once a day, 1.5 hours apart, so each one starts with a fresh hourly GitHub API budget. Renames go first so gone mirrors are already frozen (and skipped) when the syncs run, and the syncs come after the mirror run so they cover mirrors made that night. All can also be run by hand from the Actions tab. Each run posts a summary to ntfy through `notify.js`. `gitea-mirrors.js` holds the API helpers the two sync scripts share.