Skip to content
This repository was archived by the owner on Apr 26, 2026. It is now read-only.

Commit 08c4765

Browse files
authored
Add workflow to fetch cloud incidents daily
1 parent d388ee7 commit 08c4765

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Fetch Cloud Incidents
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: "0 0 * * *" # midnight UTC
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
fetch-incidents:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout repo
17+
uses: actions/checkout@v4
18+
19+
- name: Setup Node
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: 20
23+
24+
- name: Install xml2js
25+
run: npm install xml2js --legacy-peer-deps --no-save
26+
27+
- name: Run script
28+
run: node scripts/fetch-cloud-incidents.js
29+
30+
- name: Commit results
31+
run: |
32+
git config user.name "github-actions"
33+
git config user.email "github-actions@github.com"
34+
git add cloud-incidents.json
35+
git commit -m "Update cloud incidents data" || echo "No changes"
36+
git push

0 commit comments

Comments
 (0)