Skip to content

Update Visualizations #41

Update Visualizations

Update Visualizations #41

name: Update Visualizations
'on':
schedule:
- cron: '0 9 * * 1,3,5'
workflow_dispatch:
jobs:
update_visualizations:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Update Visualizations
run: |
export PYTHONPATH=$PYTHONPATH:$PWD
python scripts/visualisations/update_visualisations.py
- name: commit changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add .
git commit -m "Update visualizations"
- name: push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Deploy output folder to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: output
git-config-name: "GitHub Actions [bot]"
git-config-email: "[email protected]"