OPERA Daily Products Query #4421
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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: 'opera-sds@jpl.nasa.gov' | |
| commit_author: OPERA SDS <opera-sds@jpl.nasa.gov> | |