Skip to content

Update GitHub Stats Gist #8037

Update GitHub Stats Gist

Update GitHub Stats Gist #8037

Workflow file for this run

name: Update GitHub Stats Gist
on:
workflow_dispatch:
schedule:
- cron: '0 */12 * * *'
push:
branches: master
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@master
with:
node-version: 16
# If you edit the .js files and want to run them in your GitHub Action, you need to:
# - uncomment the 2 following lines
# - replace "npx github-stats-box@1" with "npm start"
# N.B: Your action will not receive future updates if you do so
# - uses: actions/checkout@master
# - run: npm ci
- run: npx github-stats-box@1
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }} # Do not edit, defined in secrets
# Edit the following environment variables
GIST_ID: 1cc900d92b9acc15786d7553b46a2cdf # The ID portion from your gist url
ALL_COMMITS: true # If `true` it will count all commits, if `false` it will count your last year commits
K_FORMAT: false # If `true`, large numbers will be formatted with a "k", for example "1.5k"