Skip to content

Release 6400 testnets (#1220) #13

Release 6400 testnets (#1220)

Release 6400 testnets (#1220) #13

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}"'"}}'