GitHub README STATS #128
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: 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" |