Statistics #12
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: Statistics | |
on: | |
schedule: | |
- cron: '0 6 1 * *' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.head_ref }} | |
token: ${{ secrets.PAT }} | |
- name: Setup PNPM | |
uses: pnpm/action-setup@v2 | |
- name: Use Node.js 20 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install | |
- name: Collect statistics | |
run: pnpm collect-stats | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: Generate monthly statistics | |
branch: ${{ github.head_ref }} | |
token: ${{ secrets.PAT }} |