Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

Commit

Permalink
use releases/ instead of releases/latest
Browse files Browse the repository at this point in the history
  • Loading branch information
dselans committed Feb 7, 2024
1 parent 0ea2bf0 commit 992b008
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions init_wasm.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
#!/bin/bash
#!/bin/bash -e

# Step 1: Curl the GitHub API to get the latest release
latest_release=$(curl -s https://api.github.com/repos/streamdal/streamdal/releases/latest)
latest_release=$(curl -s https://api.github.com/repos/streamdal/streamdal/releases)

# Step 2: Extract the "browser_download_url" from the JSON response
download_url=$(echo "$latest_release" | grep -o 'https://.*\.zip')
download_url=$(echo "${latest_release}" | grep -i wasm | grep -o 'https://.*\.zip' | head -n 1)

if [ -z "$download_url" ]; then
echo "Error: Unable to find the download URL for the WASM artifact"
exit 1
fi

# Step 3: Add debug info
mkdir -p test-assets/wasm
Expand Down

0 comments on commit 992b008

Please sign in to comment.