Skip to content

Commit

Permalink
fix: simplify platform selection and improve download logging in IOTA…
Browse files Browse the repository at this point in the history
… setup action
  • Loading branch information
itsyaasir committed Nov 27, 2024
1 parent ceafcfa commit 29f8d8c
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/actions/iota-rebase-sandbox/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,20 @@ runs:
- name: Set up IOTA Node
shell: bash
run: |
set -e
mkdir -p iota
cd iota
# Select platform-specific asset pattern
if [ "${{ inputs.platform }}" = "linux" ]; then
PLATFORM="linux"
else
PLATFORM="macos"
fi
# Set platform
PLATFORM="${{ inputs.platform }}"
echo "Looking for platform: $PLATFORM"
# Get download URL with simpler jq filter
# Get download URL
DOWNLOAD_URL=$(curl "https://api.github.com/repos/iotaledger/iota/releases/latest" | \
jq -r --arg p "$PLATFORM" '.assets[] | select(.name | contains($p)) | .browser_download_url')
# Download and extract
echo "Downloading from: $DOWNLOAD_URL"
curl -L -o iota.tar.gz $DOWNLOAD_URL
tar -xzf iota.tar.gz
Expand Down

0 comments on commit 29f8d8c

Please sign in to comment.