Skip to content

CMC crawler

CMC crawler #38751

Workflow file for this run

name: "CMC crawler"
on:
push:
schedule:
# Run hourly
- cron: "0 * * * *"
jobs:
build:
runs-on: ubuntu-latest
env:
CMC_API_KEY: ${{ secrets.CMC_API_KEY }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
- run: go run crawler.go
- name: Commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add ./data/
git commit -m "Added new data by Github Action" -a || true
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
force: true