Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use gh #1459

Merged
merged 1 commit into from
Mar 28, 2024
Merged

Use gh #1459

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading