Skip to content

Parse Earthquake API and Send Webhook(s) #119

Parse Earthquake API and Send Webhook(s)

Parse Earthquake API and Send Webhook(s) #119

Workflow file for this run

name: Parse Earthquake API and Send Webhook(s)
on:
schedule:
- cron: '00 21 * * *' # at 3:00PM EVERY DAY UTC-6
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout GitHub Content to GitHub Runner
uses: actions/checkout@v2 # checkout to github runner
- name: Build Python Image
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install Python Requirements
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Parse USGS-API Feed (GeoJSON) and Send Webhook
env:
ENV_URLS: ${{ secrets.ENV_URLS }}
run: |
echo "Starting ..."
python usgs_geojson_main.py
echo "Done !"
echo ${{ job.status }}