Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
louisjoecodes committed Jan 22, 2024
1 parent d027f1f commit 3901146
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ runs:
steps:
- run: |
if [ "${{ inputs.version }}" = "latest" ]; then
# Fetch the latest release tag from GitHub API without authentication
LATEST_VERSION=$(curl -s https://api.github.com/repos/quarylabs/quary-cli/releases/latest | grep 'tag_name' | cut -d '"' -f 4)
echo "Latest version is $LATEST_VERSION"
VERSION=$LATEST_VERSION
# Fetch the latest release tag from GitHub API without authentication
LATEST_VERSION=$(curl -s https://api.github.com/repos/quarylabs/quary-cli/releases/latest | grep 'tag_name' | cut -d '"' -f 4)
echo "Latest version is $LATEST_VERSION"
VERSION=$LATEST_VERSION
else
VERSION=${{ inputs.version }}
VERSION=${{ inputs.version }}
fi
echo "Installing Quary CLI version $VERSION"
wget https://github.com/quarylabs/quary-cli/releases/download/$VERSION/quary-$VERSION-quary-linux-x86_64-gnu.zip -O quary-cli.zip
unzip quary-cli.zip -d quary-cli
sudo mv "quary-cli/quary-$VERSION" /usr/local/bin/quary
quary --version
shell: bash
shell: bash

0 comments on commit 3901146

Please sign in to comment.