Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
louisjoecodes committed Jan 22, 2024
1 parent e7b0523 commit d027f1f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 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
sudo mv "quary-cli/quary-$VERSION" /usr/local/bin/quary
quary --version
shell: bash
shell: bash

0 comments on commit d027f1f

Please sign in to comment.