Skip to content

Commit

Permalink
Setup Runner: Make script work again
Browse files Browse the repository at this point in the history
  • Loading branch information
sounddrill31 authored Apr 11, 2024
1 parent 2aaeeb6 commit a8e2a85
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/runner-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@ rm -rf actions-runner || true
exit 1
fi # Fetch version

url=https://github.com/actions/runner/releases/download/v${version}/actions-runner-linux-x64-${version}.tar.gz # Fetch URL
url=https://github.com/actions/runner/releases/download/v${version}/actions -runner-linux-x64-${version}.tar.gz # Fetch URL
url=$(echo "$url" | xargs) # Remove leading/trailing whitespace
if ! wget -O actions-runner-linux-x64.tar.gz "${url}"; then
echo "Failed to download the runner package"
exit 1
fi

echo "Extracting Zip"
tar -xvf actions-runner-linux-x64.tar.gz
mkdir -p actions-runner
tar -xvf actions-runner-linux-x64.tar.gz -C actions-runner
echo "Removing Leftovers"
rm -rf actions-runner-linux-x64.tar.gz # Extract package and remove leftovers
rm -rf actions-runner-linux-x64.tar.gz # Extract package and remove leftovers

0 comments on commit a8e2a85

Please sign in to comment.