validate-claims (cron) #65
This file contains hidden or 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
| name: validate-claims (cron) | |
| on: | |
| schedule: | |
| - cron: "17 2 * * *" # UTC; TR saatiyle ~05:17 | |
| push: | |
| paths: | |
| - "docs/claims/**/*.json" | |
| - "scripts/validate_claims.sh" | |
| - ".github/workflows/validate-claims-cron.yml" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: validate-claims | |
| cancel-in-progress: true | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install jq | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| sudo apt-get update | |
| sudo apt-get install -y jq | |
| jq --version | |
| # Foundry'yi resmi action ile kurar; forge/cast PATH'e eklenir | |
| - name: Setup Foundry | |
| uses: foundry-rs/foundry-toolchain@v1 | |
| with: | |
| version: nightly | |
| - name: Show versions | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| forge --version | |
| cast --version | |
| - name: Run validator | |
| env: | |
| OG_RPC_URL: ${{ secrets.OG_RPC_URL }} # yoksa public RPC'ye düşer | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| RPC_URL="${OG_RPC_URL:-https://evmrpc-testnet.0g.ai}" | |
| export RPC_URL | |
| export CHAIN_ID=16601 | |
| bash scripts/validate_claims.sh |