Skip to content

Update gist with Steam Playtime #1154

Update gist with Steam Playtime

Update gist with Steam Playtime #1154

Workflow file for this run

name: Update gist with Steam Playtime
on:
schedule:
- cron: "0 0 * * *"
push:
branches: [ master ]
jobs:
build:
name: Update-steam-playtime
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GIST_ID: f597e65861369bea57d95b17f7125dc6
STEAM_API_KEY: ${{ secrets.STEAM_API_KEY }}
STEAM_ID: ${{ secrets.STEAM_ID }}
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/YouEclipse/steam-box.git
cd steam-box && go build -o steam ./cmd/box/main.go
mv ./steam ../ && cd .. && rm -rf steam-box/
- name: "Update gist"
run: |-
./steam