Skip to content

Fetch latest Netlify outages data #109172

Fetch latest Netlify outages data

Fetch latest Netlify outages data #109172

Workflow file for this run

---
name: Fetch latest Netlify outages data
on:
push:
workflow_dispatch:
schedule:
- cron: "1,16,31,46 * * * *"
jobs:
scheduled:
runs-on: ubuntu-latest
steps:
- name: Fetches repo
uses: actions/checkout@v2
- name: Get and format api
run: |-
curl https://www.netlifystatus.com/api/v2/status.json | jq . > netlify_outages.json
- name: Get and format api
run: |-
curl https://www.netlifystatus.com/api/v2/day.json | jq . > netlify_day.json
- name: Get and format api
run: |-
curl https://www.netlifystatus.com/api/v2/summary.json | jq . > netlify_summary.json
- name: Add results to repo
run: |-
git config user.name "Outages Project Worker"
git config user.email "actions@users.noreply.github.com"
git add -A *.json
timestamp=$(date -u -Is)
git commit -m "Update outages data on ${timestamp}" || exit 0
git push