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

Commit 7adca39

Browse files
authored
Create generate-incidents.yml
1 parent b7205ee commit 7adca39

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Generate Incidents JSON
2+
3+
on:
4+
# schedule:
5+
# - cron: '0 0 * * *' # Everyday at midnight
6+
workflow_dispatch: # manual
7+
8+
jobs:
9+
generate:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v5
14+
- uses: actions/setup-node@v6
15+
with:
16+
node-version: 24
17+
- run: node script.js
18+
19+
20+
# - name: Commit and push if changed
21+
# run: |
22+
# git config --local user.email "action@github.com"
23+
# git config --local user.name "GitHub Action"
24+
# git add all-blockchain-incidents-*.json
25+
# git diff --staged --quiet || git commit -m "Update incidents JSON $(date +%Y-%m-%d)"
26+
# git push
27+

0 commit comments

Comments
 (0)