Check sepolia-testnet funds #34
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Check key balances on sepolia-testnet | |
# | |
name: '[health] Check sepolia funds' | |
run-name: Check sepolia-testnet funds | |
on: | |
schedule: | |
- cron: '*/30 * * * *' | |
workflow_dispatch: | |
jobs: | |
run-check: | |
runs-on: [self-hosted, Linux, X64, all-testnets] | |
steps: | |
- name: 'Check out ten-test' | |
uses: actions/checkout@v3 | |
with: | |
path: ./ten-test | |
- name: 'Check out go-ten code' | |
uses: actions/checkout@v3 | |
with: | |
repository: ten-protocol/go-ten | |
path: ./go-ten | |
ref: 'releases/v0.28' | |
- name: 'Build required artifacts for running tests' | |
run: | | |
cd ${{ github.workspace }}/ten-test | |
./get_artifacts.sh | |
ls -l ${{ github.workspace }}/ten-test/artifacts | |
- name: 'Run funds check' | |
run: | | |
cd ${{ github.workspace }}/ten-test/admin | |
/usr/local/bin/pysys.py run -m ten.sepolia check_balances | |
- name: 'Discord notification on failure' | |
if: failure() | |
uses: sarisia/actions-status-discord@v1 | |
with: | |
webhook: ${{ secrets.TESTNET_HEALTH_WEBHOOK }} | |
title: "Sepolia funds check failed" | |
description: "Sepolia funds check run on schedule" | |
content: "Please investigate <@814873419207409685> <@92361563276591104> <@920586981581393983> <@921049923414261821> <@1034771491436363797> <@639076633994592256> <@1275573709910052947> <@398020680966471680> <@216439743947341824>" | |
avatar_url: ${{ secrets.AVATAR_URL }} | |