Skip to content

Update Stats

Update Stats #1667

Workflow file for this run

name: Update Stats
on:
push:
branches:
- master
schedule:
- cron: '0 0 * * *'
jobs:
readme:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Update Stats
run: |
npm install
node mk_readme.js
node mk_html.js
env:
FORCE_COLOR: 3
COLORTERM: truecolor
- name: Commit
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add README.md
git add index.html
git commit -m "update stats"
- name: Push to master
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Push to gh-pages
uses: ad-m/github-push-action@master
with:
branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
force: true