Files
free-steam-games-list/.github/workflows/top-offline.yml
T
poli0981andClaude Opus 5.5 529b8603c3 ci(pipeline): queue data-write runs and start each on the latest main
- queue: max on every data-write workflow (GitHub, 2026-05-07): up to
  100 runs wait, first in, first out. The default kept one, and a run
  queueing behind a running job cancelled it.
- ref: main on every checkout. A run's commit is fixed when it is
  created, so a run that waited behind another data job wrote shards
  from before that job's commit; Auto Update JSON failed four days in
  ten on the rebase conflict in data/index.json.
- timeout-minutes everywhere, and JOB_BUDGET_MINUTES at least 20 below
  it for the long loops (never for the ingest, which empties its queue).
- pipeline.test.ts fails on a data-write workflow missing any of these.
- The admin's Pipeline and Automation pages, docs/ADMIN.md and the
  auto-approve comment no longer say a push evicts a waiting job; the
  idle gate stays, so a batch's ingest starts at once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 22:22:08 +07:00

32 lines
1.2 KiB
YAML

name: Top Offline Leaderboard
on:
# Bi-weekly: 1st and 15th of every month at 05:00 UTC. Cron does not
# truly support "every 14 days"; this is the closest approximation.
schedule: [{cron: '0 5 1,15 * *'}]
workflow_dispatch:
permissions: {contents: write}
# queue: max - a run that finds another data job running waits its turn
# (first in, first out) instead of evicting the run already waiting.
concurrency:
group: data-write
cancel-in-progress: false
queue: max
jobs:
leaderboard:
runs-on: ubuntu-latest
# About 0.55 s a game through the keyed Web API: ~65 minutes for 7,000
# offline games, ~2 hours at 14,000. The budget stops the sampling with
# time left to save and commit.
timeout-minutes: 240
steps:
# main as it is when the job STARTS: a run that waited its turn must
# work on what the job before it committed.
- uses: actions/checkout@v4
with: {ref: main}
- uses: actions/setup-python@v5
with: {python-version: '3.15'}
- run: chmod +x ./bash/offline.sh && ./bash/offline.sh
env:
STEAM_API_KEY: '${{ secrets.STEAM_API_KEY }}'
JOB_BUDGET_MINUTES: '200'