From d11acbdb526f4188af59e1c4b98de4eb8a16be95 Mon Sep 17 00:00:00 2001 From: Chris Carini <6374067+ChrisCarini@users.noreply.github.com> Date: Thu, 21 Oct 2021 00:17:20 -0700 Subject: [PATCH] Fixing bug for non-latest verifier versions where the VERIFIER_DOWNLOAD_URL is missing the VERIFIER_JAR_FILENAME. (#27) Fixes #26 --- entrypoint.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index bad89af..1ff11a3 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -166,23 +166,23 @@ if [[ "$INPUT_VERIFIER_VERSION" == "LATEST" ]]; then GH_LATEST_RELEASE_FILE="$HOME/intellij-plugin-verifier_latest_gh_release.json" curl --silent --show-error https://api.github.com/repos/JetBrains/intellij-plugin-verifier/releases/latest > "$GH_LATEST_RELEASE_FILE" VERIFIER_VERSION=$(cat "$GH_LATEST_RELEASE_FILE" | jq -r .tag_name | sed 's/[^[:digit:].]*//g') - VERIFIER_DOWNLOAD_URL=$(cat "$GH_LATEST_RELEASE_FILE" | jq -r .assets[].browser_download_url) VERIFIER_JAR_FILENAME=$(cat "$GH_LATEST_RELEASE_FILE" | jq -r .assets[].name) + VERIFIER_DOWNLOAD_URL=$(cat "$GH_LATEST_RELEASE_FILE" | jq -r .assets[].browser_download_url) else gh_debug "Using verifier version [$INPUT_VERIFIER_VERSION]..." VERIFIER_VERSION=${INPUT_VERIFIER_VERSION} - VERIFIER_DOWNLOAD_URL="https://dl.bintray.com/jetbrains/intellij-plugin-service/org/jetbrains/intellij/plugins/verifier-cli/$INPUT_VERIFIER_VERSION/$VERIFIER_JAR_FILENAME" # The filename of the `verifier-cli-*-all.jar` file VERIFIER_JAR_FILENAME="verifier-cli-$VERIFIER_VERSION-all.jar" + VERIFIER_DOWNLOAD_URL="https://dl.bintray.com/jetbrains/intellij-plugin-service/org/jetbrains/intellij/plugins/verifier-cli/$INPUT_VERIFIER_VERSION/$VERIFIER_JAR_FILENAME" fi # The full path of the `verifier-cli-*-all.jar` file VERIFIER_JAR_LOCATION="$HOME/$VERIFIER_JAR_FILENAME" gh_debug "VERIFIER_VERSION => $VERIFIER_VERSION" -gh_debug "VERIFIER_DOWNLOAD_URL => $VERIFIER_DOWNLOAD_URL" gh_debug "VERIFIER_JAR_FILENAME => $VERIFIER_JAR_FILENAME" +gh_debug "VERIFIER_DOWNLOAD_URL => $VERIFIER_DOWNLOAD_URL" gh_debug "VERIFIER_JAR_LOCATION => $VERIFIER_JAR_LOCATION" ##