-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 1 KB
/
main.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
name: Update Plots
on: push
workflow_dispatch:
jobs:
update_plot:
name: Update plot with new data
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.7'
cache: 'pip'
- name: Install Dependencies
run: pip install -r requirements.txt
- name: Run Script and Update GDP plot
run: |
cd gdp/
python generate_image.py
python generate_gif.py
- name: Run script and update IIP plot
run: |
cd iip/
python generate_gif.py
- name: Commit and Push Changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
git commit -m "Updated plot on `date` with GitHub Actions" || echo "No Changes to Commit"
git push origin master || echo "No Changes to Commit"