Skip to content

Commit

Permalink
Fix release notifier (#1449)
Browse files Browse the repository at this point in the history
  • Loading branch information
aurexav authored Mar 12, 2024
1 parent 9670563 commit 54c345a
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Runtime override
name: Notify release

on:
push:
Expand All @@ -15,11 +15,11 @@ jobs:
- name: Notify
run: |
TAG=$(echo ${{ github.ref }} | sed 's!.*/\(.*\)!\1!')
curl -XPOST \
curl -X POST \
-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":{"network":"mainnet","tag":"'"${TAG}"'"}}'
"https://api.github.com/repos/darwinia-network/darwinia-releases/actions/workflows/wasm.yml/dispatches" \
-d '{"ref":"main","inputs":{"network":"mainnet","tag":"'${TAG}'"}}'
notify-testnet:
name: Notify testnet
Expand All @@ -29,8 +29,8 @@ jobs:
- name: Notify
run: |
TAG=$(echo ${{ github.ref }} | sed 's!.*/\(.*\)!\1!')
curl -XPOST \
curl -X POST \
-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":{"network":"testnet","tag":"'"${TAG}"'"}}'
"https://api.github.com/repos/darwinia-network/darwinia-releases/actions/workflows/wasm.yml/dispatches" \
-d '{"ref":"main","inputs":{"network":"testnet","tag":"'${TAG}'"}}'

0 comments on commit 54c345a

Please sign in to comment.