rebuild webpages #10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |