Skip to content

Commit

Permalink
chore(workflow): daily publish data
Browse files Browse the repository at this point in the history
  • Loading branch information
rydesun committed Aug 7, 2020
1 parent 00f505e commit 0921980
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/dailyrun.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Daily Run
on:
schedule:
- cron: '45 0 * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Use Go
uses: actions/setup-go@v2
with:
go-version: 1.14
- name: Build
run: go build -o dist/awg ./cmd/awg
- name: Fetch data
run: dist/awg fetch -config configs/config.yaml
env:
GITHUB_ACCESS_TOKEN: ${{ secret.awesome-github }}
- name: Upload data
uses: actions/upload-artifact@v2
with:
name: awesome-go
path: awg.json

0 comments on commit 0921980

Please sign in to comment.