-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (49 loc) · 1.3 KB
/
Copy pathvalidate-claims-cron.yml
File metadata and controls
58 lines (49 loc) · 1.3 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
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