File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6464 - name : Install yarn.
6565 run : npm install -g yarn
6666 - name : Install dependencies.
67- run : yarn install
67+ run : yarn add webhook-discord
6868
6969 - name : Run script.
7070 run : DISCORD=${{ secrets.DISCORD }} VERSION=${GITHUB_REF#refs/tags/} node .github/webhook.js
Original file line number Diff line number Diff line change 11{
22 "name" : " @kyve/substrate" ,
3- "version" : " 0.0.2 " ,
3+ "version" : " 0.0.3 " ,
44 "license" : " MIT" ,
55 "scripts" : {
66 "build" : " rimraf dist && tsc" ,
2929 "pkg" : " ^5.7.0" ,
3030 "prettier" : " ^2.7.1" ,
3131 "rimraf" : " ^3.0.2" ,
32- "typescript" : " ^4.7.3" ,
33- "webhook-discord" : " ^3.7.8"
32+ "typescript" : " ^4.7.4"
3433 }
3534}
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ export function isHeightOutOfRange(err: any): boolean {
2626async function requestSidecarAPI ( endpoint : string , signature : Signature ) {
2727 const { data } = await axios . get ( endpoint , {
2828 headers : {
29+ 'Content-Type' : 'application/json' ,
2930 Signature : signature . signature ,
3031 'Public-Key' : signature . pubKey ,
3132 'Pool-ID' : signature . poolId ,
You can’t perform that action at this time.
0 commit comments