Files
LCE-Workshop/.github/workflows/registry.yml
/home/neo 92c8160080 fix
2026-06-14 18:14:14 +03:00

35 lines
934 B
YAML

name: Generate Registry
on:
workflow_dispatch:
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: npm init -y && npm i jsonc-parser && 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 versions.json plugins.json
git diff --cached --quiet || git commit -m "chore: regenerate registry.json, versions.json and plugins.json"
git push