-
Notifications
You must be signed in to change notification settings - Fork 32
79 lines (66 loc) · 2.49 KB
/
update-node-tables.yml
File metadata and controls
79 lines (66 loc) · 2.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: Update Node Tables
on:
push:
branches: [main]
workflow_dispatch:
schedule:
# Run daily at 06:00 UTC
- cron: "0 6 * * *"
permissions:
contents: write
pull-requests: write
jobs:
update-tables:
runs-on: hashgraph-docs-linux-medium
steps:
- name: Harden the runner
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0
with:
egress-policy: audit
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- name: Install dependencies (jq, curl)
run: |
sudo apt-get update
sudo apt-get install -y jq curl
- name: Make script executable
run: chmod +x ./update_node_tables.sh
- name: Run update script
run: ./update_node_tables.sh
- name: Detect and log changes
id: git-check
run: |
echo "=== git status ==="
git status --porcelain
if git diff --quiet; then
echo "changes=false" >> "$GITHUB_OUTPUT"
echo "No changes detected."
else
echo "changes=true" >> "$GITHUB_OUTPUT"
echo "=== diffstat ==="
git --no-pager diff --stat
echo "=== first 200 lines of diff ==="
git --no-pager diff | head -n 200
fi
- name: Create Pull Request
if: ${{ steps.git-check.outputs.changes == 'true' }}
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e
with:
commit-message: "chore: update node tables from Mirror Node API"
sign-commits: true
branch: update-node-tables
title: "chore: update node tables"
body: |
## Automated Node Table Update
This PR updates the mainnet consensus node tables with the latest data from the [Mirror Node API](https://mainnet.mirrornode.hedera.com/api/v1/network/nodes).
### Updated fields:
- Service endpoints (IP addresses and ports)
- Public keys
- Certificate hashes (SHA384 thumbprints)
### Data source:
- Mirror Node API: `https://mainnet.mirrornode.hedera.com/api/v1/network/nodes`
- Same data displayed on [HashScan](https://hashscan.io/mainnet/nodes/table)
---
*This is an automated PR generated by the node tables update workflow.*
labels: automated-pr
delete-branch: true