chore(ci): add repo health check workflow, LFS enforcement, and gitattributes

This commit is contained in:
GitHub Actions
2025-12-09 01:25:57 +00:00
parent a3237fe32c
commit 5d364baae5
18 changed files with 907 additions and 38 deletions

39
.github/workflows/repo-health.yml vendored Normal file
View File

@@ -0,0 +1,39 @@
name: Repo Health Check
on:
schedule:
- cron: '0 0 * * *'
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch: {}
jobs:
repo_health:
name: Repo health
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
lfs: true
- name: Set up Git
run: |
git --version
git lfs install --local || true
- name: Run repo health check
env:
MAX_MB: 100
LFS_ALLOW_MB: 50
run: |
bash scripts/repo_health_check.sh
- name: Upload health output
if: always()
uses: actions/upload-artifact@v4
with:
name: repo-health-output
path: |
/tmp/repo_big_files.txt