Skip to content

GitHub README STATS #116

GitHub README STATS

GitHub README STATS #116

Workflow file for this run

name: GitHub README STATS
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
push:
branches:
- main
env:
GITHUB_NAME: "github-actions[bot]"
GITHUB_EMAIL: "github-actions[bot]@users.noreply.github.com"
STARRED_NUM: 10
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: My GitHub Status
uses: yihong0618/github-readme-stats@main
with:
# we need set GITHUB_TOKEN
GH_TOKEN: ${{ secrets.GH_TOKEN }}
# if you also want to send TELE
STARRED_NUM: ${{ env.STARRED_NUM }}
- name: Push README
run: |
git config --local user.email "${{ env.GITHUB_EMAIL }}"
git config --local user.name "${{ env.GITHUB_NAME }}"
git commit -a -m 'docs: update readme.md' || echo "nothing to commit"
git push || echo "nothing to push"