Skip to content

Run parse_jwst_schedule.py #14

Run parse_jwst_schedule.py

Run parse_jwst_schedule.py #14

name: Run parse_jwst_schedule.py
on:
workflow_dispatch:
schedule:
# https://crontab.guru/#40_9_*_*_0
# Run at 05:00 UTC on MWF to catch schedule updates
- cron: "0 05 * * 1,3,5"
jobs:
UpdateJWSTSchedule:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
- name: Build python
uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip' # caching pip dependencies
- run: pip install -r requirements.txt
- name: Run script
shell: bash
run: cd assets/schedule; python parse_jwst_schedule.py
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
default_author: github_actions
message: 'Update JWST schedules from the GH Action'