forked from keep-starknet-strange/madara
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (31 loc) · 988 Bytes
/
configs-verifier.yml
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
---
name: Task - Configs Verifier
on:
workflow_dispatch:
workflow_call:
jobs:
genesis-docs:
name: Genesis documentation
runs-on: ubuntu-latest
if: startsWith(github.event.ref, 'refs/tags/ignore-docs')
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Ensure docs changes
run: |
if [[ -n $(git diff --name-only origin/main | grep configs/genesis-assets/genesis.json) ]]; then
git diff --name-only origin/main | grep docs/genesis.md
fi
configs-hashes:
name: Verify genesis-assets hashes
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install sha3sum
run: sudo apt-get install libdigest-sha3-perl
- name: Verify hashes
run: |
for f in $(find configs/genesis-assets -type f -not -path configs/index.json); do
cat configs/index.json | grep $(sha3sum -a 256 $f | awk '{print $1}')
done