Update Github Stats Gist #1409
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: 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@v1 | |
with: | |
node-version: 12 | |
- run: npx github-stats-box | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} # Do not edit, defined in secrets | |
# Edit the following environment variables | |
GIST_ID: f1c50069ab8e88dfac3f71f1ae0c6d2a # 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" |