All checks were successful
Update Plugin Index / update-index (push) Successful in 7s
35 lines
858 B
YAML
35 lines
858 B
YAML
name: Update Plugin Index
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
paths:
|
|
- 'plugins/*.json'
|
|
|
|
jobs:
|
|
update-index:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: '18'
|
|
|
|
- name: Generate index.json
|
|
run: node .gitea/scripts/update-index.js
|
|
|
|
- name: Commit index.json
|
|
run: |
|
|
git config user.name "Gitea Actions"
|
|
git config user.email "actions@gitea.local"
|
|
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
|