From 4ce60b87a91f8b2e6a007b6abf36a7a5d4bb9bf6 Mon Sep 17 00:00:00 2001 From: Aleksey Zhukov <353748+alezkv@users.noreply.github.com> Date: Tue, 15 Jul 2025 16:19:45 +0300 Subject: [PATCH 1/2] Fix ability to set version from input --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index f5c1a43..9417a97 100644 --- a/action.yml +++ b/action.yml @@ -8,7 +8,7 @@ inputs: runs: using: "composite" steps: - - run: sudo bash ${{ github.action_path }}/install.sh -b /usr/local/bin -d ${TFCMT_VERSION} + - run: sudo bash ${{ github.action_path }}/install.sh -b /usr/local/bin -d ${GITHUB_COMMENT_VERSION} shell: bash env: GITHUB_COMMENT_VERSION: ${{ inputs.version }} From 86056dd6fd0a654d78840cd55eac38e1f76cdba4 Mon Sep 17 00:00:00 2001 From: Aleksey Zhukov <353748+alezkv@users.noreply.github.com> Date: Tue, 15 Jul 2025 16:22:19 +0300 Subject: [PATCH 2/2] fix: exact match for gz files in hash_sha256_verify port of https://github.com/shmokmt/actions-setup-tfcmt/pull/25/files --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 9c77bf6..172561e 100644 --- a/install.sh +++ b/install.sh @@ -326,7 +326,7 @@ hash_sha256_verify() { BASENAME=${TARGET##*/} log_debug $BASENAME log_debug $TARGET - want=$(grep "${BASENAME}" "${checksums}" 2>/dev/null | tr '\t' ' ' | cut -d ' ' -f 1) + want=$(grep "${BASENAME}$" "${checksums}" 2>/dev/null | tr '\t' ' ' | cut -d ' ' -f 1) if [ -z "$want" ]; then log_err "hash_sha256_verify unable to find checksum for '${TARGET}' in '${checksums}'" return 1