Skip to content

Fetch latest DigitalOcean outages data #109621

Fetch latest DigitalOcean outages data

Fetch latest DigitalOcean outages data #109621

Workflow file for this run

name: Fetch latest DigitalOcean 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@v3
- name: Get and format api
run: |-
curl https://status.digitalocean.com/api/v2/status.json | jq . > digitalocean_outages.json
- name: Get and format api
run: |-
curl https://status.digitalocean.com/api/v2/summary.json | jq . > digitalocean_summary.json
- name: Add results to repo
run: |-
git config user.name "Automated"
git config user.email "actions@users.noreply.github.com"
git add -A *.json
timestamp=$(date -u -Is)
git commit -m "Update data on ${timestamp}" || exit 0
git push