forked from bokub/github-stats-box
22 lines (21 loc) 路 835 Bytes
/
run.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
- run: npx github-stats-box
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }} # Do not edit, defined in secrets
# Edit the following environment variables
GIST_ID: d6d145b057ccda9abd1e36a581f2c096 # 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: true # If `true`, large numbers will be formatted with a "k", for example "1.5k"