Skip to content

update data

update data #6

Workflow file for this run

name: update data
on:
schedule:
# Should run at 0:00, 6:00, 12:00, and 16:00 every day (UTC).
- cron: '0 0,6,12,16 * * *'
workflow_dispatch:
jobs:
run-python:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install Dependencies
run: pip install -r requirements.txt
- name: Fetch Data
env:
API_KEY: ${{ secrets.API_KEY }}
CLIENT_ID: ${{ secrets.CLIENT_ID }}
run: python fetch_data.py
- name: Commit and Push
run: |
git config --local user.email "[email protected]"
git config --local user.name "Piet Brömmel"
git add data/*
git commit -m "data update"
git push