Skip to content

Commit

Permalink
feat(cook_hook) Refactor hook
Browse files Browse the repository at this point in the history
  • Loading branch information
MrLutik committed Mar 3, 2024
1 parent 8e21799 commit fa2417a
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 10 deletions.
29 changes: 21 additions & 8 deletions .github/workflows/merge_hook.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

name: Release Merged Hook

on:
Expand All @@ -14,17 +15,29 @@ jobs:
- name: Extract Version from Branch Name
id: version-extract
run: |
echo "VERSION=${GITHUB_REF#refs/heads/release/v}" >> $GITHUB_ENV
env:
GITHUB_REF: ${{ github.event.pull_request.head.ref }}
shell: bash
VERSION=$(echo "${{ github.event.pull_request.head.ref }}" | sed 's|release/v||')
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Trigger Repository Dispatch Event
env:
VERSION: ${{ env.VERSION }}
run: |
curl -X POST -H "Accept: application/vnd.github.v3+json" \
-H "Authorization: Bearer ${{ secrets.SEKIN_TOKEN }}" \
"https://api.github.com/repos/kiracore/sekin/dispatches" \
-d "{\"event_type\":\"release_merged\", \"client_payload\": {\"version\":\"${VERSION}\", \"name\":\"sekai\"}}"
-H "Authorization: Bearer ${{ secrets.REPO_ACCESS }}" \
"https://api.github.com/repos/KiraCore/sekin/dispatches" \
-d @- <<EOF
{
"event_type": "release_merged",
"client_payload": {
"version": "${VERSION}",
"authors": "KIRA",
"url": "https://kira.network",
"documentation": "https://docs.kira.network",
"source": "https://github.com/KiraCore/sekai",
"vendor": "KiraCore",
"licenses": "CC BY-NC-SA 4.0",
"title": "sekai",
"description": "SEKAI, KIRA's blockchain core, enhances Tendermint with Multi-Bonded Proof of Stake for staking diverse assets and KEX. It facilitates transactions and state transitions through Consensus Nodes, supported by off-chain modules like INTERX and RYOKAI for scalable execution and storage. As a hypermodular network hub, SEKAI streamlines user balance settlements, secures RollApp layers, and manages data/token transfers. It simplifies dApp deployment by enabling Consensus Nodes to act as Executors for RollApps, fostering a decentralized verification and execution system incentivized by KIRA’s liquidity protocols."
}
}
EOF
4 changes: 3 additions & 1 deletion RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
Features:

- Add flag for filtering only required modules for migration #630
- Add webhook
- Add static build

2 changes: 1 addition & 1 deletion types/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ package types
const (
// we set page iteration limit for safety
PageIterationLimit = 512
SekaiVersion = "v0.3.41"
SekaiVersion = "v0.3.42"
CosmosVersion = "v0.47.6"
)

0 comments on commit fa2417a

Please sign in to comment.