Compare commits

..

2 Commits

4 changed files with 17 additions and 15 deletions

View File

@@ -48,12 +48,6 @@ for (const file of changedFiles) {
continue;
}
// Skip index.json - it's auto-generated
if (file === 'plugins/index.json') {
console.log(`⚠️ Note: index.json is auto-generated, should not be manually edited`);
continue;
}
const pluginId = file.replace('plugins/', '').replace('.json', '');
// Check if file was added or removed

View File

@@ -10,8 +10,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Generate index.json
run: |
@@ -29,10 +27,10 @@ jobs:
echo " \"$plugin_id\"" >> index.json
first=false
else
echo ", \"$plugin_id\"" >> index.json
echo " ,\"$plugin_id\"" >> index.json
fi
fi
done | sed '$ s/,$//'
done
echo ' ]' >> index.json
echo '}' >> index.json
@@ -43,8 +41,8 @@ jobs:
git config user.email "actions@gitea.local"
git add plugins/index.json
if git diff --staged --quiet; then
echo "No changes to index.json"
echo "No changes to commit"
else
git commit -m "Auto-update plugin index [skip ci]"
git commit -m "Auto-update plugin index"
git push
fi

View File

@@ -55,11 +55,9 @@ Gitea Actions will automatically validate:
- ✅ Version format is valid
- ✅ URLs are valid
**Note:** Don't edit `plugins/index.json` - it's automatically generated when your PR is merged!
### 4. Merge
If validation passes, maintainer will merge your PR. The `index.json` file will be automatically updated.
If validation passes, maintainer will merge your PR.
## 🗑️ Removing Your Plugin

View File

@@ -0,0 +1,12 @@
{
"id": "example-plugin-2",
"name": "Example Plugin 2",
"version": "1.0.0",
"description": "A second example plugin demonstrating additional capabilities",
"author": "litruv",
"repository": "http://synbox.ruv.wtf:8418/litruv/Plugin-Example2.git",
"downloadUrl": "http://synbox.ruv.wtf:8418/litruv/Plugin-Example2/archive/main.zip",
"homepage": "http://synbox.ruv.wtf:8418/litruv/Plugin-Example2",
"tags": ["example", "demo", "filtering", "validation"],
"addedDate": "2026-04-17T00:00:00.000Z"
}