Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
Signed-off-by: Paulo Gomes <[email protected]>
  • Loading branch information
pjbgf committed Dec 10, 2024
1 parent 7df68a6 commit aeaf73e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions actions/install-slsactl/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ runs:
if: runner.os == 'Linux'
shell: bash
run: |
set -x
if [[ "${VERSION}" == "latest" ]]; then
echo 'Checking what the latest version is'
VERSION=$(curl -s 'https://api.github.com/repos/rancherlabs/slsactl/releases/latest' | jq -r '.tag_name')
Expand Down Expand Up @@ -79,8 +80,12 @@ runs:
curl -LO "https://${REPO}/releases/download/${VERSION}/${FILE}"
grep "${FILE}" "slsactl_${VERSION#v}_checksums.txt" | sha256sum -c
chmod +x "${FILE}"
sudo mv "${FILE}" /usr/local/bin/slsactl
chmod +x "${FILE}"
if sudo -l &> /dev/null; then
sudo mv "${FILE}" /usr/local/bin/slsactl
else
mv "${FILE}" /usr/local/bin/slsactl
fi
env:
VERSION: ${{ inputs.version }}
REPO: github.com/rancherlabs/slsactl
Expand Down

0 comments on commit aeaf73e

Please sign in to comment.