Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
akanksha1131 committed Apr 20, 2024
1 parent 6ea28c2 commit 5de17c1
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ name: Run Scripts
on:
schedule:
# Run newday.py every day.
- cron: '59 13 * * *'
- cron: '50 15 * * *'
# Run update_BoW.py every day
- cron: '30 14 * * *'
- cron: '30 16 * * *'

jobs:
build:
Expand All @@ -27,13 +27,20 @@ jobs:
- name: Install Python packages
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
python -m pip install torch torchvision torchaudio
- name: Install NLTK dependencies
run: |
python -m nltk.downloader stopwords punkt
- name: Install other requirements
run: pip install -r requirements.txt

- name: Execute newday.py
run: python project/newday.py

- name: Execute update_BoW.py (every day)
if: ${{github.event.cron == '20 14 * * *' }}
if: ${{github.event.cron == '30 16 * * *' }}
run: python update_BoW.py

- name: Commit files
Expand Down

0 comments on commit 5de17c1

Please sign in to comment.