-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (31 loc) · 912 Bytes
/
readme.yaml
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
30
31
32
33
34
35
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"