-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (33 loc) · 868 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: rebuild webpages
on:
workflow_dispatch:
schedule:
- cron: "0 18 * * 1-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