Parse Earthquake API and Send Webhook(s) #51
This file contains 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: 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 }} |