-
Notifications
You must be signed in to change notification settings - Fork 135
45 lines (44 loc) · 1.05 KB
/
feegrant.yaml
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
---
name: Create New Fee Grant
on:
push:
branches:
- main
jobs:
changes:
runs-on: ubuntu-20.04
outputs:
paths: ${{ steps.filter.outputs.ibc_files }}
steps:
- uses: actions/checkout@v3
- uses: dorny/paths-filter@v2
id: filter
with:
list-files: shell
filters: |
ibc:
- added|modified: '_IBC/*.json'
CreateFeeGrant:
needs: changes
runs-on: ubuntu-20.04
if: ${{ needs.changes.outputs.paths != null }}
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: |
.github
_IBC
scripts
- name: Install Archwayd
uses: jaxxstorm/action-install-gh-release@v1
with:
repo: archway-network/archway
tag: v6.0.2
- name: Create the fee grant
env:
MNEMONIC: ${{ secrets.FEEGRANT }}
run: |
paths=(${{ needs.changes.outputs.paths }})
for path in "${paths[@]}"; do
scripts/feegrant.sh $path
done