-
Notifications
You must be signed in to change notification settings - Fork 16
43 lines (36 loc) · 1.16 KB
/
update.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
34
35
36
37
38
39
40
41
42
43
name: Fetch and Summarize Data (Master)
jobs:
summarize:
name: summarize
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
lfs: true
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Install dependencies
run: npm install
- name: Download and Generate JSON data
env:
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }}
NODE_OPTIONS: --max_old_space_size=4096
run: node generate.js 2>&1 | tee output.txt
- name: Generate charts
run: node generate_charts.js
- name: Git Status
run: git status
- name: Commit files
run: |
git config --local user.email [email protected]
git config --local user.name "Automated Action"
git add docs/summary_min/*.json docs/summary/*.json docs/charts/*.svg
git commit -m "Automated Data Update" || exit 0
- name: Push changes
uses: ad-m/github-push-action@master
with:
branch: master
github_token: ${{ secrets.GITHUB_TOKEN }}