Skip to content

Update README.md

Update README.md #62

Workflow file for this run

name: Update Plots
on: push
workflow_dispatch:

Check failure on line 4 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/main.yml

Invalid workflow file

You have an error in your yaml syntax on line 4
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 "actions@github.com"
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"