Skip to content

Fetch news

Fetch news #668

Workflow file for this run

name: 'Fetch news'
on:
schedule:
- cron: "0 6 * * *"
workflow_dispatch: {}
jobs:
deploy:
name: 'Deploy'
runs-on: ubuntu-latest
steps:
- name: Clone the repository
run: git clone -b ${GITHUB_REF##*/} https://github.com/${GITHUB_REPOSITORY}
- name: Install native dependencies
run: sudo apt install npm pandoc
- name: Install Python dependencies
run: pip3 install -r requirements.txt
working-directory: ./nlp-monitoring
- name: Install NLTK packages
run: python3 -c 'import nltk; nltk.download("punkt_tab")'
- name: Install JS dependencies
run: npm install
working-directory: ./nlp-monitoring
- name: fetch_news.py
run: python3 fetch_news.py
working-directory: ./nlp-monitoring
env:
MONGODB_CONNECTION_STRING: ${{ secrets.MONGODB_CONNECTION_STRING }}