-
Notifications
You must be signed in to change notification settings - Fork 1.4k
29 lines (27 loc) · 1.17 KB
/
run.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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"