mirror of
https://github.com/MatesMediaDev/JollyRipper-PluginsDirectory.git
synced 2026-05-30 00:11:25 +00:00
38 lines
952 B
YAML
38 lines
952 B
YAML
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
|