-
Notifications
You must be signed in to change notification settings - Fork 49
36 lines (33 loc) · 1.25 KB
/
runtime-override.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
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}"'"}}'