Skip to content

scrape-wikipedia #23501

scrape-wikipedia

scrape-wikipedia #23501

Workflow file for this run

name: scrape-wikipedia
on:
push:
branches:
- master
schedule:
- cron: "0 * */1 * *"
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: 🍽️ Get working copy
uses: actions/checkout@master
with:
fetch-depth: 1
- name: 🐍 Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: 💿 Install Requirements
run: pip install -r requirements.txt
- name: 🍳 Update dataset
run: python main.py
- name: 🚀 Commit and push if it changed
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
git add -A
timestamp=$(date -u)
git commit -m "Latest data: ${timestamp}" || exit 0
git push