-
Notifications
You must be signed in to change notification settings - Fork 48
49 lines (44 loc) · 1.53 KB
/
on-chain-upgrade.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
45
46
47
48
49
name: Test on chain upgrade
# On chain upgrade workflow tests the on-chain upgrade procedure.
# This workflow is run on pushes to master & every Pull Requests where a .go, .mod, .sum have been changed
on:
pull_request:
types: [opened, synchronize, labeled, unlabeled]
push:
branches:
- master
jobs:
Cleanup-runs:
runs-on: ubuntu-latest
steps:
- name: Cleanup 🧹
uses: rokroskar/workflow-run-cleanup-action@master
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/master'"
Perform-upgrade:
if: "contains(github.event.pull_request.labels.*.name, 'requires-upgrade')"
runs-on: ubuntu-latest
timeout-minutes: 60
env:
GENESIS_DESMOS_VERSION: "v6.0.0"
GENESIS_URL: "https://github.com/desmos-labs/states/raw/main/morpheus-apollo-3-13462545.json"
UPGRADE_NAME: "v6.2.0"
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- name: Setup Go 🧰
uses: actions/setup-go@v5
with:
go-version: '1.20'
- name: Install Desmos 🔧
run: make clean install
- name: Start testnet ⛓
run: |
make upgrade-testnet-start \
GENESIS_VERSION="$GENESIS_DESMOS_VERSION" \
GENESIS_URL="$GENESIS_URL" \
UPGRADE_NAME="$UPGRADE_NAME"
- name: Submit upgrade ✅
run: |
./contrib/upgrade_testnet/submit_upgrade_proposal.sh 4 $GENESIS_DESMOS_VERSION $UPGRADE_NAME 75