Skip to content

Fetch Data

Fetch Data #33

Workflow file for this run

name: Fetch Data
on:
schedule:
- cron: '0 0 * * 0' # Runs weekly on Sunday at midnight
workflow_dispatch:
jobs:
fetch_data:
runs-on: ubuntu-latest
steps:
- name: Checkout gh-pages branch
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install Dependencies
run: |
pip install requests
- name: Fetch Data
env:
PARSE_APP_ID: ${{ secrets.PARSE_APP_ID }}
run: |
python fetch_data.py
- name: Commit and Push changes
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add -A
git commit -m "Update data files" || true
git push