Skip to content

Commit

Permalink
Use gh (#1459)
Browse files Browse the repository at this point in the history
  • Loading branch information
aurexav authored Mar 28, 2024
1 parent 156820a commit a8c5231
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/notify-release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
name: Notify release
env:
GITHUB_TOKEN: ${{ secrets.GH_TKN_DARWINIA }}

on:
push:
Expand All @@ -15,11 +17,7 @@ jobs:
- name: Notify
run: |
TAG=$(echo ${{ github.ref }} | sed 's!.*/\(.*\)!\1!')
curl -X POST \
-H "Authorization:Bearer ${{ secrets.GH_TKN_DARWINIA }}" \
-H "Accept:application/vnd.github+json" \
"https://api.github.com/repos/darwinia-network/darwinia-releases/actions/workflows/wasm.yml/dispatches" \
-d '{"ref":"main","inputs":{"network":"mainnet","tag":"'${TAG}'"}}'
gh workflow run wasm.yml --repo darwinia-network/darwinia-release -f network=mainnet -f tag=${TAG}
notify-testnet:
name: Notify testnet
Expand All @@ -29,8 +27,4 @@ jobs:
- name: Notify
run: |
TAG=$(echo ${{ github.ref }} | sed 's!.*/\(.*\)!\1!')
curl -X POST \
-H "Authorization:Bearer ${{ secrets.GH_TKN_DARWINIA }}" \
-H "Accept:application/vnd.github+json" \
"https://api.github.com/repos/darwinia-network/darwinia-releases/actions/workflows/wasm.yml/dispatches" \
-d '{"ref":"main","inputs":{"network":"testnet","tag":"'${TAG}'"}}'
gh workflow run wasm.yml --repo darwinia-network/darwinia-release -f network=testnet -f tag=${TAG}
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ jobs:
sudo mv ${{ env.GOMPLATE }} /usr/bin/gomplate
- name: Setup wuh
run: |
curl -LO https://github.com/darwinia-network/darwinia-releases/releases/download/v0.1.0/wuh.zst
curl -LO https://github.com/darwinia-network/darwinia-release/releases/download/v0.1.0/wuh.zst
zstd -d wuh.zst
chmod u+x ./wuh
sudo mv ./wuh /usr/bin/wuh
Expand Down

0 comments on commit a8c5231

Please sign in to comment.