Skip to content

Release pango*-6401 (#1239) #15

Release pango*-6401 (#1239)

Release pango*-6401 (#1239) #15

name: Runtime override
on:
push:
tags:
- "v*"
- "pango*"
jobs:
runtime-override-mainnets:
name: Runtime override
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- name: Runtime override
run: |
TAG=$(echo ${{ github.ref }} | sed 's!.*/\(.*\)!\1!')
curl -XPOST \
-H "Authorization:Bearer ${{ secrets.GH_TKN_DARWINIA }}" \
-H "Accept:application/vnd.github+json" \
"https://api.github.com/repos/darwinia-network/wasm-runtime-overrides/dispatches" \
-d '{"event_type":"create","client_payload":{"release":"mainnets","ref":"'"${TAG}"'"}}'
runtime-override-testnets:
name: Runtime override
if: startsWith(github.ref, 'refs/tags/pango')
runs-on: ubuntu-latest
steps:
- name: Runtime override
run: |
TAG=$(echo ${{ github.ref }} | sed 's!.*/\(.*\)!\1!')
curl -XPOST \
-H "Authorization:Bearer ${{ secrets.GH_TKN_DARWINIA }}" \
-H "Accept:application/vnd.github+json" \
"https://api.github.com/repos/darwinia-network/wasm-runtime-overrides/dispatches" \
-d '{"event_type":"create","client_payload":{"release":"testnets","ref":"'"${TAG}"'"}}'