-
Notifications
You must be signed in to change notification settings - Fork 124
44 lines (42 loc) · 1.27 KB
/
gentx_validation.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
35
36
37
38
39
40
41
42
43
44
name: "GenTx Validation"
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
verify-gentx:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-go@v2
with:
go-version: '^1.17'
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- run: go version
- name: Install dependencies
run: sudo apt install -y boxes moreutils coreutils
- name: Get changed files
id: changes
# Set outputs using the command.
run: |
echo "::set-output name=changes::$(git diff --name-only --diff-filter=ACMRT ${{ github.event.pull_request.base.sha }} ${{ github.sha }} -- "./gentxs" | xargs)"
- name: Check if added GenTx and if valid
if: ${{ steps.changes.outputs.changes }}
run: |
bash -x ./scripts/validate-gentx.sh
env:
DAEMON: ./build/evmosd
CHAIN_ID: evmos_9001-1
DENOM: aevmos
GH_URL: https://github.com/tharsis/evmos
BINARY_VERSION: v1.0.0
PROJECT_DIR: ${{ github.workspace }}
GENTX_DIR: ./gentxs
GENTX_FILE: ${{ github.workspace }}/${{ steps.changes.outputs.changes }}