Skip to content

Pull plugin stats #1014

Pull plugin stats

Pull plugin stats #1014

Workflow file for this run

name: Pull plugin stats
on:
schedule:
- cron: "0 0 * * *"
# run it on closing PR to test the workflow, will remove once it works
# on:
# pull_request:
# types: [opened, closed, synchronize]
jobs:
pull-stats:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: 16.x
- run: |
git config --local user.name 'Obsidian Bot'
git config --local user.email '[email protected]'
node update-stats.js
git add .
git commit -m "chore: Update plugin stats"
git push
env:
gh_token: ${{ secrets.GH_TOKEN }}