Skip to content

Commit

Permalink
add name and compatible versions
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterPi-2124 committed May 31, 2023
1 parent 27f9589 commit 15c1675
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/add_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
type: string

tag-height-proposal:
description: "Tag, Height and Proposal. If the upgrade is not consensus break, leave height and proposal to -1."
description: "Tag, Height and Proposal. If the upgrade is not consensus-breaking, leave height and proposal to -1."
required: true
default: '{
"tag": "-1",
Expand Down Expand Up @@ -147,17 +147,25 @@ jobs:
ics_enabled = json.loads('${{ github.event.inputs.ics_enabled }}')
binaries = json.loads('${{ github.event.inputs.binaries }}')
recommended_version = tag
compatible_versions = [recommended_version]
if cosmwasm_version != '':
cosmwasm_enabled = True
else:
cosmwasm_enabled = False
if proposal != -1: # Consensus-breaking upgrade
name = tag
else: # Non Consensus-breaking upgrade
name = ".".join(tag.split(".")[:2])
newVersion = {
"name": name,
"tag": tag,
"height": height,
"proposal": proposal,
"recommended_version": recommended_version,
"compatible_versions": compatible_versions,
"cosmos_sdk_version": cosmos_sdk_version,
"consensus": consensus,
"cosmwasm_version": cosmwasm_version,
Expand Down

0 comments on commit 15c1675

Please sign in to comment.