Pull Packages stats #1096
This file contains hidden or 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 Packages stats | |
| on: | |
| schedule: | |
| - cron: "0 0 * * *" | |
| workflow_dispatch: # Put here!! | |
| # run it on closing PR to test the workflow, will remove once it works | |
| # on: | |
| # pull_request: | |
| # types: [opened, closed, synchronize] | |
| jobs: | |
| pull-stats: | |
| if: github.repository == 'text-gen/text-generator-packages' | |
| 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 'Bot Update Packages Stats' | |
| git config --local user.email '[email protected]' | |
| node update-stats.js | |
| git add . | |
| git commit -m "chore: Update Packages stats" | |
| git push | |
| env: | |
| gh_token: ${{ secrets.GH_TOKEN }} |