Scrape latest data #1473
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: Scrape latest data | |
on: | |
schedule: | |
- cron: '15 1 * * *' | |
workflow_dispatch: {} | |
jobs: | |
scrape: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out this repo | |
uses: actions/checkout@v2 | |
- name: Setup Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: '^1.15' | |
- name: Fetch latest data | |
env: | |
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | |
run: |- | |
go run main.go kubernetes/kops | |
go run main.go kubernetes/kubernetes | |
go run main.go hashicorp/terraform | |
go run main.go terraform-providers/terraform-provider-aws | |
- name: Commit and push if it changed | |
run: |- | |
git config user.name "github bot" | |
git config user.email "[email protected]" | |
git add -A | |
timestamp=$(date -u) | |
git commit -m "Data update: ${timestamp}" || exit 0 | |
git push |