-
Notifications
You must be signed in to change notification settings - Fork 82
46 lines (37 loc) · 1011 Bytes
/
verify-json.yml
File metadata and controls
46 lines (37 loc) · 1011 Bytes
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
name: Verify JSON
permissions:
contents: read
on:
push:
branches:
- main
jobs:
verify_mainnet_shortlist:
runs-on: ubuntu-latest
env:
PROVIDER_URL: ${{ secrets.PROVIDER_URL }}
LINEA_PROVIDER_URL: ${{ secrets.LINEA_PROVIDER_URL }}
steps:
- name: Checkout code
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version-file: '.nvmrc'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Verify mainnet shortlist
run: npm run verify
- name: Check for changes
run: |
if [[ -n $(git diff --exit-code) ]]; then
echo "::error::Difference detected between your input and the onchain data. Please review the changes."
git diff
exit 1
else
echo "No changes detected. Exiting successfully."
exit 0
fi