Skip to content

Monthly Data Update

Monthly Data Update #6

Workflow file for this run

name: Monthly Data Update
on:
schedule:
- cron: "0 21 1 * *" # Runs at 00:00 (TLV Time - UTC+3) on the first day of every month
workflow_dispatch:
jobs:
update_data:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run script
run: python haaretz_scrape.py
- name: Commit and push changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.email "[email protected]"
git config --global user.name "ChefAharoni"
git add data/*
git commit -m "Auto updated magazines URLs via Script on $(date)" || exit 0
git push