Skip to content

Validate Telos Block Producers #1426

Validate Telos Block Producers

Validate Telos Block Producers #1426

Workflow file for this run

name: Validate Telos Block Producers
on:
schedule:
- cron: "*/15 * * * *"
workflow_dispatch:
permissions:
contents: write
jobs:
validate:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: "22"
- name: Install dependencies
run: pip install aiohttp pyntelope requests
- name: Run validation
env:
TLOSMECHANIC_KEY: ${{ secrets.TLOSMECHANIC_KEY }}
run: python scripts/validate_bps.py > validation/latest.json
- name: Run IF checker snapshot
run: node scripts/generate_ifchecker_snapshot.js
- name: Commit results
run: |
git config user.name "Telos BP Validator"
git config user.email "validator@telos.net"
git add validation/latest.json validation/history.json validation/ifchecker/latest.json
git diff --staged --quiet || git commit -m "chore: update BP validation results"
git push