Skip to content

rebuild webpages

rebuild webpages #10

Workflow file for this run

name: rebuild webpages
on:
workflow_dispatch:
schedule:
- cron: "0 19 * * 1,3,5"
permissions:
contents: write
jobs:
rebuild_website:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: main
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.11.6
- name: Install dependencies
run: |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Execute main.py
run: |
cd 'Stock Forecasting'
python main.py
- name: Commit changes
run: |
git add .
git config user.name github-actions
git config user.email [email protected]
git commit -m 'Updated via workflow bot'
git push