Skip to content

Collect Plugin Data #91

Collect Plugin Data

Collect Plugin Data #91

name: Collect Plugin Data
on:
schedule:
# Run daily at 2:00 AM UTC
- cron: '0 2 * * *'
workflow_dispatch:
permissions: {}
jobs:
collect:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/setup-repo
- name: Collect plugins
run: pnpm run collect
- name: Commit and push changes
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add data/plugins/
if git diff --staged --quiet; then
echo "No changes to commit"
else
git commit -m "chore: update plugin data $(date +%Y-%m-%d)"
git push
fi