update readme

This commit is contained in:
journey-ad
2020-07-30 18:37:15 +08:00
parent 92a6b14ba7
commit f961133f3a
2 changed files with 90 additions and 0 deletions
+43
View File
@@ -0,0 +1,43 @@
name: Update steam playtime
on:
push:
branches: [master]
pull_request:
branches: [master]
schedule:
- cron: "10 * * * *"
jobs:
build:
name: Update-steam-playtime
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GIST_ID: 62fa160542e61ac240820bc0b02b5632
STEAM_API_KEY: ${{ secrets.STEAM_API_KEY }}
STEAM_ID: ${{ secrets.STEAM_ID }}
UPDATE_OPTION: GIST_AND_MARKDOWN
MARKDOWN_FILE: README.md
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.14
id: go
- name: Check out repo
uses: actions/checkout@v2
- uses: actions/setup-go@v2
- name: Clone and run steam-box
run: |-
git clone https://github.com/journey-ad/steam-box.git
cd steam-box && go build -o steam ./cmd/box/main.go
mv ./steam ../ && cd .. && rm -rf steam-box/
- name: Commit and push
run: |-
./steam
git config --global user.email "bot@github.com" && git config --global user.name "Steam-Bot"
git diff
git add README.md && git commit -m ":memo: update profile" || exit 0
git pull && git push
+47
View File
@@ -0,0 +1,47 @@
name: Update wakatime 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.GH_TOKEN }}
UPDATE_OPTION: GIST_AND_MARKDOWN
MARKDOWN_FILE: README.md
GIST_ID: a074b1d99d36db5b72c8ef9c1436a074
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 repo
uses: actions/checkout@v2
- uses: actions/setup-go@v2
- name: Clone and run waka-box
run: |-
git clone https://github.com/journey-ad/waka-box-go.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