Skip to content

Commit

Permalink
warn deprecated message. fixed to v1 latest to v1.7.15
Browse files Browse the repository at this point in the history
  • Loading branch information
fujiwara committed Jul 17, 2024
1 parent 3a8cbcf commit 0b3ef26
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ runs:
working-directory: /tmp
run: |
set -e
echo "::warning ecspresso@v1 is deprecated. Please use ecspresso@v2 action."
VERSION="${{ inputs.version }}"
if [ "${VERSION}" = "latest" ]; then
DOWNLOAD_URL=$(curl -sS 'https://api.github.com/repos/kayac/ecspresso/releases?per_page=100' | jq -r '[.[]|select(.tag_name < "v1.99")|select(.prerelease == false)][0].assets[].browser_download_url|select(match("linux.amd64."))')
else
DOWNLOAD_URL=https://github.com/kayac/ecspresso/releases/download/${VERSION}/ecspresso_${VERSION:1}_linux_amd64.tar.gz
$VERSION=v1.7.15
echo "::notice Using fixed latest v1 version: ${VERSION}"
fi
DOWNLOAD_URL=https://github.com/kayac/ecspresso/releases/download/${VERSION}/ecspresso_${VERSION:1}_linux_amd64.tar.gz
cd /tmp
curl -sfLO ${DOWNLOAD_URL}
if [[ "${DOWNLOAD_URL}" =~ \.tar\.gz$ ]]; then
Expand Down

0 comments on commit 0b3ef26

Please sign in to comment.