Update waka box stats #653
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: Update waka box stats | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
schedule: | |
- cron: "5 0 * * *" | |
jobs: | |
build: | |
name: Update-waka-stats | |
runs-on: ubuntu-latest | |
env: | |
WAKATIME_API_KEY: ${{ secrets.WAKATIME_API_KEY }} | |
# GH_TOKEN: ${{ secrets.waka-box-token }} | |
# UPDATE_OPTION: GIST_AND_MARKDOWN | |
UPDATE_OPTION: MARKDOWN | |
MARKDOWN_FILE: DF-wu/README.md | |
# GIST_ID: 9bc7025496e478f439b9cd43eba989a4 | |
# GIST_BARSTYLE: SOLIDLT | |
# GIST_BARLENGTH: -1 | |
# GIST_TIMESTYLE: SHORT | |
steps: | |
- name: Set up Go 1.x | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ^1.14 | |
id: go | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v2 | |
# - name: Clone and run waka-box | |
# run: |- | |
# git clone https://github.com/DF-wu/DF-wu.git | |
# cd waka-box-go && go build -o waka ./cmd/box/main.go | |
# mv ./waka ../ && cd .. && rm -rf waka-box-go/ | |
# - name: Commit and push | |
# run: |- | |
# ./waka | |
# git config --global user.email "bot@github.com" && git config --global user.name "Waka-Bot" | |
# git diff | |
# git add README.md && git commit -m ":memo: update profile" || exit 0 | |
# git pull && git push | |