Initial plugin directory setup

This commit is contained in:
Max Litruv Boonzaayer
2026-04-19 03:31:23 +10:00
commit 7033b9cb48
9 changed files with 537 additions and 0 deletions

37
.github/workflows/update-index.yml vendored Normal file
View File

@@ -0,0 +1,37 @@
name: Update Plugin Index
on:
push:
branches: [ main ]
paths:
- 'plugins/*.json'
workflow_dispatch:
jobs:
update-index:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Generate index.json
run: node .github/scripts/update-index.js
- name: Commit index.json
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add plugins/index.json
if git diff --staged --quiet; then
echo "No changes to index.json"
else
git commit -m "Auto-update plugin index [skip ci]"
git push
fi