Pull plugin stats #1004
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |