Files
mandy/.github/workflows/no-game-data.yml
OreoFR c4058242c9 ci: the workflows behind main's required checks also run on merge_group (CI-MERGE-QUEUE)
So a merge queue can be turned on for main. `ci.yml` (change-scope, check,
linux-python-and-viewer, semantic-tests) and `no-game-data.yml` (no-game-data)
gain a `merge_group:` trigger. In the queue `change-scope` is skipped (it reads
a pull request's diff), which counts as passed for a required check, and the
jobs after it run in full. Their concurrency groups fall back to run_id there,
so queued runs never cancel each other.

Agreed to by a second human maintainer (Aslan).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 20:57:13 +01:00

38 lines
1.3 KiB
YAML

name: No Game Data
on:
push:
branches: [main]
pull_request:
# The merge queue tests each pull request on top of the latest main (and those ahead of it) before it merges.
merge_group:
workflow_dispatch:
concurrency:
# Coalesce superseded pending pushes per branch without canceling an active main build.
group: no-game-data-${{ github.event_name }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
permissions: {}
jobs:
no-game-data:
runs-on: ubuntu-24.04
timeout-minutes: 5
permissions:
contents: read
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
fetch-depth: 1
- name: No game data tracked
run: |
bad=$(git ls-files -z | grep -ziE '\.(rpf|ttpf|xvd|msixvc|dxbc|fssm|spv|spvasm|dds|bk2|awc|r9modeldata|obj|glb|ogg|wav|exe|dll)$' | tr '\0' '\n' || true)
if [ -n "$bad" ]; then
echo "Game or binary files tracked:"
echo "$bad"
exit 1
fi
- name: No game data under another name
run: python3 -I scripts/check_no_game_data.py