This commit is contained in:
/home/neo 2026-04-06 12:39:53 +03:00 committed by GitHub
parent 5487d17cb2
commit 2859dd3dc9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

33
.github/workflows/registry.yml vendored Normal file
View file

@ -0,0 +1,33 @@
name: Generate Registry
on:
push:
branches: [main]
paths:
- "**/meta.json"
pull_request:
branches: [main]
paths:
- "**/meta.json"
jobs:
generate:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- name: Validate & generate registry.json
run: node scripts/registry.js
- name: Commit registry.json
if: github.event_name == 'push'
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add registry.json
git diff --cached --quiet || git commit -m "chore: regenerate registry.json"
git push