Skip to content

Update BOM Forecast

Update BOM Forecast #2

name: Update BOM Forecast
on:
schedule:
- cron: '0 2,8,14,20 * * *'
workflow_dispatch:
jobs:
update-forecast:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install dependencies
run: |
pip install --upgrade pip
pip install requests beautifulsoup4 pandas matplotlib numpy
- name: Generate forecast plots
run: python _scripts/generate_forecast.py
- name: Commit and push changes
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add images/bom_forecast_*.png files/forecast_metadata.json files/forecast_timestamp.txt
git commit -m "Update BOM forecast plots" --allow-empty
git push