-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (31 loc) · 899 Bytes
/
scrape.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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 "actions@users.noreply.github.com"
git add -A
timestamp=$(date -u)
git commit -m "Data update: ${timestamp}" || exit 0
git push