Make Weekly Stats #41
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: Make Weekly Stats | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * 1' | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
ref: main | |
- name: My GitHub Status | |
uses: yihong0618/github-readme-stats@main | |
with: | |
GH_TOKEN: "${{ secrets.G_T }}" | |
WITH_STARED: false | |
- name: Push README | |
run: | | |
git config --local user.email "action@github.com" | |
git config --local user.name "GitHub Action" | |
git add . | |
git commit -m "new daily stats" || echo "no file change" | |
git push || echo "no need push" |