Skip to content

OPERA Daily Products Query #1210

OPERA Daily Products Query

OPERA Daily Products Query #1210

name: OPERA Daily Products Query
on:
schedule:
# Runs around midnight Pacific Time (UTC-7)
# Doesn't account for daylight saving transitions
- cron: "0 */4 * * *"
workflow_dispatch:
jobs:
opera-daily-products-query:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11.0'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Execute Daily Products Query
run: |
cd monitoring
python opera_daily_products_query.py
# reference: https://github.com/stefanzweifel/git-auto-commit-action
- name: Commit and Push to Github
uses: stefanzweifel/git-auto-commit-action@v5
with:
file_pattern: 'monitoring/*.png'
commit_user_name: 'opera_sds'
commit_user_email: '[email protected]'
commit_author: OPERA SDS <[email protected]>