Skip to content

Statistics

Statistics #13

Workflow file for this run

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 }}