Restrict link-check to weekly schedule only, move to Saturday (THE-95)

- Remove push-to-master trigger from link-check job; it now runs only on
  the weekly cron schedule to avoid hammering external sites on every push
- Change schedule from Sunday 02:00 UTC to Saturday 08:00 UTC as requested

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
s0lray
2026-03-25 15:39:02 -04:00
co-authored by Paperclip
parent eb76bdfa11
commit b96e7a2343
+4 -5
View File
@@ -6,8 +6,8 @@ on:
pull_request:
branches: [master]
schedule:
# Run link check weekly on Sunday at 02:00 UTC
- cron: '0 2 * * 0'
# Run link check weekly on Saturday at 08:00 UTC
- cron: '0 8 * * 6'
jobs:
json-lint:
@@ -44,9 +44,8 @@ jobs:
link-check:
name: Link Check
runs-on: ubuntu-latest
# Only run on schedule and direct pushes to master, not on every PR
# (avoids hammering external sites during code review)
if: github.event_name == 'schedule' || (github.event_name == 'push' && github.ref == 'refs/heads/master')
# Only run on schedule (weekly Saturday) — avoid hammering external sites on every push/PR
if: github.event_name == 'schedule'
steps:
- uses: actions/checkout@v4