Skip to content

Build New Frontpage #258

Build New Frontpage

Build New Frontpage #258

Workflow file for this run

name: Build New Frontpage
on:
workflow_dispatch:
schedule:
- cron: '0 11 * * *'
jobs:
scheduled:
runs-on: ubuntu-latest
steps:
- name: Check out this repo
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Train Model + Build New Site
run: python -m spacy project run new-frontpage-github
- name: Commit and push if it changed
run: |-
git config user.name "Automated"
git config user.email "[email protected]"
git add -A
timestamp=$(date -u)
git commit -m "Latest data: ${timestamp}" || exit 0
git push